From 9a90def302d264c637d70d6b02cf5695bca36cf3 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Tue, 1 Nov 2005 16:24:58 +0000 Subject: [PATCH] * libtool.m4 (_LT_AC_LOCK) [ solaris ]: Add `-64' to $LD if necessary, to permit combining of several convenience libs without any further objects added. Reported by Brian Barrett . --- ChangeLog | 7 +++++++ libtool.m4 | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/ChangeLog b/ChangeLog index 06724fae7..3d20f4a41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-11-01 Ralf Wildenhues + + * libtool.m4 (_LT_AC_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/libtool.m4 b/libtool.m4 index acd1ee09e..5ce8265b6 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -574,6 +574,22 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 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* + ;; + AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) -- 2.47.3