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 13:44:27 +0100
User-agent: KMail/1.5

Paul Eggert wrote:
> I thought this module might be useful for people trying to build
> executables on systems like Solaris where the "-lrt" option causes the
> executable to dynamically link to rt, even if the executable does not
> need any of the rt routines.

The problem is brought in by the fact that we build a single libgnulib or
libcoreutils for all executables of a package, and if a single function
in this library needs, say, high-resolution timers, the libgnulib or
libcoreutils has "-lrt" in its link specification. Unfortunately, I know
no better solution than yours.

> +       [gl_ldd_output0=`(ldd conftest$ac_exeext) 2>/dev/null` ||

This uses 'ldd'. This command is OS dependent:

   AIX:          dump -H
   IRIX:         elfdump -Dl
   HP-UX:        chatr
   OSF/1, Tru64: odump -Dl
   Solaris:      ldd
   glibc-based:  ldd

Bruno





reply via email to

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