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 _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib