From e9a753cb1bc1dd9859722b5c0e990f74264d63d5 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Tue, 3 Jul 2007 05:10:45 +0000 Subject: [PATCH] * libtool.m4 (_LT_AC_LOCK) [ solaris ]: Cater to old Sparc Solaris 7 ld that does not understand `-64'. Report by Vincent Lefevre . --- ChangeLog | 6 ++++++ libtool.m4 | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d6e426412..64a26cf4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-07-03 Ralf Wildenhues + + * libtool.m4 (_LT_AC_LOCK) [ solaris ]: Cater to old Sparc + Solaris 7 ld that does not understand `-64'. + Report by Vincent Lefevre . + 2007-06-30 Peter Breitenlohner * libtool.m4 (AC_LIBTOOL_DLOPEN_SELF): Correct a typo ("-dld" diff --git a/libtool.m4 b/libtool.m4 index a9b102ed8..e0745c2c3 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -603,7 +603,11 @@ sparc*-*solaris*) *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; esac ;; esac -- 2.47.2