STklos icon indicating copy to clipboard operation
STklos copied to clipboard

.so files do not have prerequisite information

Open jpellegrini opened this issue 5 years ago • 1 comments

No big deal... One more thing from Debian lint:

W: stklos: shared-library-lacks-prerequisites usr/lib/stklos/1.50/srfi-175-impl.so

The warning tag means:

The listed shared library doesn't include information about the other libraries against which it was linked. More specifically, "ldd foo.so" should report such other libraries. In your case, it reports "statically linked". The fix is to specify the libraries. One way to do so is to add something like "-lc" to the command-line options for "ld".

So I did include -lc in lib/Makefile.am,

.c.@SH_SUFFIX@ :
	@CC@ @CFLAGS@ @STKCFLAGS@ @SH_COMP_FLAGS@ -I../src @GCINC@ \
	-c -o $*.o $*.c
	@SH_LOADER@ @SH_LOAD_FLAGS@  $*.@SH_SUFFIX@ -lc $*.o
	/bin/rm -f $*.o

But I'm not sure this is the right way to handle it. Should it somehow be included in SH_LOAD_FLAGS? Or is hardcoding -lc there is OK? (If it is, I can make a PR)

jpellegrini avatar Sep 16 '20 19:09 jpellegrini

PR #125 would include this.

jpellegrini avatar Sep 22 '20 09:09 jpellegrini