From: Daniel Reed Date: Fri, 19 Nov 2004 07:18:30 +0000 (+0000) Subject: * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret X-Git-Tag: release-2-1b~855 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30ab30e06ad06aad77a478f3f6e51a5db5bfc2f5;p=thirdparty%2Flibtool.git * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret `include' statements in toplevel ld.so.conf file. --- diff --git a/ChangeLog b/ChangeLog index f6724e83f..c71fa37c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-18 Daniel Reed + + * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret + `include' statements in toplevel ld.so.conf file. + 2004-11-18 Ralf Wildenhues * m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin/mingw/pw32]: diff --git a/m4/libtool.m4 b/m4/libtool.m4 index d7b36eaa7..4240a5eb0 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -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