bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib-tool: support for LDFLAGS, LIBDEPS and LTLIBDEPS


From: Ralf Wildenhues
Subject: Re: gnulib-tool: support for LDFLAGS, LIBDEPS and LTLIBDEPS
Date: Sun, 10 Sep 2006 13:21:25 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]