diff options
author | Julien Cristau <jcristau@debian.org> | 2014-05-10 15:38:16 +0200 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2014-06-19 13:16:37 +0000 |
commit | e2dfabf24f98663ff08d79bd02d7c8deca0afedc (patch) | |
tree | f7dd1b0e404c6213b55fe29224059a2cdc9f718c /m4/libtool.m4 | |
parent | 1261b655da1420aab60c236d403cac4a68284246 (diff) | |
parent | b486c93e9a47b931ac36269516186af25bc0581a (diff) |
Imported Debian patch 2.4.54-1debian/2.4.54-1
Diffstat (limited to 'm4/libtool.m4')
-rw-r--r-- | m4/libtool.m4 | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4 index bc28ccc..56666f0 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2479,14 +2479,7 @@ freebsd* | dragonfly*) *) objformat=elf ;; esac fi - # Handle Gentoo/FreeBSD as it was Linux - case $host_vendor in - gentoo) - version_type=linux ;; - *) - version_type=freebsd-$objformat ;; - esac - + version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' @@ -2497,12 +2490,6 @@ freebsd* | dragonfly*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; - linux) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - need_lib_prefix=no - need_version=no - ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in @@ -2682,10 +2669,14 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) # before this can be enabled. hardcode_into_libs=yes + # Add ABI-specific directories to the system library path. + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + fi # We used to test for /lib/ld.so.1 and disable shared libraries on |