From: Scott James Remnant Date: Mon, 10 Nov 2003 21:04:48 +0000 (+0000) Subject: * m4/libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [linux]: Include X-Git-Tag: release-1-9b~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45706c96144a50f4d5ad53d42bd4548e8e7fb93d;p=thirdparty%2Flibtool.git * m4/libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [linux]: Include directories found in /etc/ld.so.conf in sys_lib_dlsearch_path_spec. --- diff --git a/ChangeLog b/ChangeLog index accf2df61..e9c28ee54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-11-07 Scott James Remnant + + * m4/libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [linux]: Include + directories found in /etc/ld.so.conf in sys_lib_dlsearch_path_spec. + 2003-11-09 Peter O'Gorman * ltmain.in (linkalldeplibs,darwin): Fix a bug reported by Idar diff --git a/NEWS b/NEWS index 6950f7d81..16693b95b 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,7 @@ New in 1.5b: 2003-??-??; CVS version 1.5a, Libtool team: * If you configure libtool with --disable-shared (or if libtool does not support shared libraries on your platform) trying to build a library using `-shared' is a fatal error. +* Directories specified in /etc/ld.so.conf are no longer hardcoded on Linux. * libtoolize installs libtool.m4 (and ltdl.m4 if used) to AC_CONFIG_MACRO_DIR. * Mode inferrence removed, shorthand for choosing modes added. * Specifying -allow-undefined is now an error. diff --git a/m4/libtool.m4 b/m4/libtool.m4 index b91e2527e..1830f8c1c 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1484,6 +1484,12 @@ linux*) # before this can be enabled. hardcode_into_libs=yes + # 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` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers,