From: Ralf Wildenhues Date: Tue, 1 Nov 2005 16:24:10 +0000 (+0000) Subject: * libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Add `-64' X-Git-Tag: release-2-1b~434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ece64c09f9a820b5f826c4e431f8505c323ec4d;p=thirdparty%2Flibtool.git * libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Add `-64' to $LD if necessary, to permit combining of several convenience libs without any further objects added. Reported by Brian Barrett . --- diff --git a/ChangeLog b/ChangeLog index 0f93d39b9..533376c69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-11-01 Ralf Wildenhues + + * libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Add `-64' + to $LD if necessary, to permit combining of several convenience + libs without any further objects added. + Reported by Brian Barrett . + 2005-11-01 Kean Johnston , Ralf Wildenhues diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 964202da6..728be3e27 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -1167,6 +1167,21 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*l CFLAGS="$SAVE_CFLAGS" fi ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) LD="${LD-ld} -64" ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; esac need_locks="$enable_libtool_lock"