-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marijn Schouten (hkBst) wrote:
Hi list,
which line of configure.ac or one of the makefile.in's determines what the exact path, as given by the first line of output of the command "readelf -d /usr/bin/gsi", is at which the executable gsi searches for libgambcgsi.so in the case that gambit has been configured with --enable-shared?
Thanks,
Marijn
Alright, that probably wasn't the right question. I've been staring at configure.ac and mostly gsi/makefile.in a lot. The files libgambcgsi.so and gsi for exmaple seem to get built twice. Once during "make": $(LIBRARY): $(LIBRARY_OBJECTS_IN_COMPILE_ORDER) rm -f $(LIBRARY) @MAKE_LIBRARY@ which on my system results in: x86_64-pc-linux-gnu-gcc -Wl,-O1 -rdynamic -shared -o libgambcgsi.so _gsilib.o _gambcgsi.o ../lib/libgambc.so -lutil -ldl -lm and once during "make install": install-post: all $(srcdirpfx)$(rootfromhere)/mkidirs $(bindir) $(INSTALL_DATA) $(srcdirpfx)_gambcgsi.c $(libdir)/_gambcgsi.c - --> @MAKE_LIBRARY_FOR_INSTALL@ $(INSTALL_LIB) $(LIBRARY) $(libdir)/$(LIBRARY) @FIXLIB@ $(libdir)/$(LIBRARY) #for library in $(LIBRARIES_SCM); do \ # $(INSTALL_DATA) $$library $(libdir)/$$library; \ #done @LINK_FOR_INSTALL@ $(INSTALL_PROGRAM) $(EXECUTABLE) $(bindir)/$(EXECUTABLE) which results in: x86_64-pc-linux-gnu-gcc -Wl,-O1 -rdynamic -shared -o libgambcgsi.so _gsilib.o _gambcgsi.o /usr/lib/libgambc.so -lutil -ldl -lm you can see the second compilation of gsi there too (@LINK_FOR_INSTALL@). The first time is: $(EXECUTABLE): $(EXECUTABLE_OBJECTS_IN_COMPILE_ORDER) $(LINK_LIBS) @LINK@ What is the point of doing all this? Marijn - -- Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML <http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkkx0+sACgkQp/VmCx0OL2wUSQCeIid1fMjkdyOPMk5uyx8ogoQR uj4An0dRn0KHBku0OtlZbRo8zYtZECgP =PTjR -----END PGP SIGNATURE-----