summaryrefslogtreecommitdiff
path: root/build/libtool.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-02-15 08:51:10 +0000
committerfoobar <sniper@php.net>2005-02-15 08:51:10 +0000
commit3f5055efab4e7ecb048f61ae24131592421e6078 (patch)
tree3affc845de9c9421f6ed0ece055e1ae26bbca5c6 /build/libtool.m4
parent67a965a7e006282a2a2cdb340cfaa8806ae23027 (diff)
downloadphp-git-3f5055efab4e7ecb048f61ae24131592421e6078.tar.gz
- Applied some patches to fix issues with e.g. ia_64 and s390
Diffstat (limited to 'build/libtool.m4')
-rw-r--r--build/libtool.m422
1 files changed, 21 insertions, 1 deletions
diff --git a/build/libtool.m4 b/build/libtool.m4
index 7fdb367952..41adb2b9e7 100644
--- a/build/libtool.m4
+++ b/build/libtool.m4
@@ -2178,6 +2178,26 @@ linux-gnu*)
# people can always --disable-shared, the test was removed, and we
# assume the GNU/Linux dynamic linker is in use.
dynamic_linker='GNU/Linux ld.so'
+
+ # Find out which ABI we are using (multilib Linux x86_64 hack).
+ libsuff=
+ case "$host_cpu" in
+ x86_64*|s390x*)
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *64-bit*)
+ libsuff=64
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+ *)
+ ;;
+ esac
+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
;;
netbsd*)
@@ -3393,7 +3413,7 @@ irix5* | irix6* | nonstopux*)
# This must be Linux ELF.
linux-gnu*)
case $host_cpu in
- alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
+ alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM