Hello Bruno, * Bruno Haible wrote on Sat, Sep 09, 2006 at 09:02:29PM CEST: > > Nice suggestion. I implemented it through the patch below. When you build > a libgnu without libtool, you now have a predefined Makefile variable > LIBGNU_LIBDEPS and a predefined Makefile variable LIBGNU_LTLIBDEPS available. > They contain the -L, -l, -rpath options for linking with the dependencies > of libgnu.a. Use LIBGNU_LTLIBDEPS for executables that you link with libtool, > and LIBGNU_LIBDEPS for executables that you link without libtool.
Are there usage cases where someone links a program or library with libtool, and this uses a libgnu.a rather than a libgnu.la? If not, then you can drop LIBGNU_LTLIBDEPS -- libtool will cause the right thing to happen, independently of whether libgnu.la is a convenience archive, static library, or shared library. > Nevertheless, packages that build many executables may not want to use > these variables, since they may add too many link dependencies. But for > packages with only one executable these two Makefile variables are perfect. They could use the lib-ignore module (when they don't use Libtool). Cheers, Ralf