]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret
authorDaniel Reed <djr@redhat.com>
Fri, 19 Nov 2004 07:17:57 +0000 (07:17 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 19 Nov 2004 07:17:57 +0000 (07:17 +0000)
`include' statements in toplevel ld.so.conf file.

ChangeLog
m4/libtool.m4

index 489fde4e22d133338882f4c00f5a59a5fdd9f623..a36edaa7d8e8c316682f05a8a03114100d021fd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-18  Daniel Reed <djr@redhat.com>
+
+       * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret
+       `include' statements in toplevel ld.so.conf file.
+
 2004-11-18  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
        * m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin/mingw/pw32]:
index 777b2c07702fef71dfa89d856912be4d23ae0b0f..84b533ce4c3da5bd19228a6c037656305726ff2e 100644 (file)
@@ -1970,7 +1970,7 @@ linux*)
 
   # Append ld.so.conf contents to the search path
   if test -f /etc/ld.so.conf; then
-    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' | tr '\n' ' '`
     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   fi