bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] new module lib-ignore; new section build_lib in MODULES


From: Bruno Haible
Subject: Re: [bug-gnulib] new module lib-ignore; new section build_lib in MODULES.html
Date: Wed, 11 Jan 2006 20:06:55 +0100
User-agent: KMail/1.5

Paul Eggert wrote:
> If a package like that defines several programs,
> only some of which call clock_gettime, then the maintainer will have
> to do something like this (this is an extract from
> coreutils/src/Makefile.am):
>
> pr_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
> shred_LDADD = $(LDADD) $(LIB_GETHRXTIME) $(LIB_FDATASYNC)
> sort_LDADD = $(LDADD) $(POW_LIB) $(LIB_GETHRXTIME)
> ...
>
> where each program is carefully linked to each optionally-available
> library it might use.

Yes, that's the state-of-the-art technique. It's tedious but reliable.

> This sort of cataloging is error-prone and a pain to maintain.  It
> should be automated, and -zignore does the automation.

Is -zignore fully portable? If you find only a single platform where
-zignore's functionality does not exist, then you need to go back to the
explicit list of potential dependencies.

>       if test "$gl_ldd_output0"; then

The autoconf manual recommends   test -n "$gl_ldd_output0"   here.

>         test "$gl_ldd_output0" != "$gl_ldd_output1" then

I'm not sure that all 'ldd' variants will keep the output the same when
the set of dependent libraries has not changed. Some also include hexadecimal
addresses in the output, I think.

Bruno





reply via email to

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