]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Cater to
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 3 Jul 2007 05:09:40 +0000 (05:09 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 3 Jul 2007 05:09:40 +0000 (05:09 +0000)
old Sparc Solaris 7 ld that does not understand `-64'.
Report by Vincent Lefevre <vincent@vinc17.org>.

ChangeLog
libltdl/m4/libtool.m4

index d3b649864faf653aca8938c7e40cc4b30348b31f..0a0a3255d47260f348c021f274bab05e3cee61d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Cater to
+       old Sparc Solaris 7 ld that does not understand `-64'.
+       Report by Vincent Lefevre <vincent@vinc17.org>.
+
 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libltdl/m4/lt~obsolete.m4 (LTOBSOLETE_VERSION): New macro, to
index 75f1e0e7a03352c7e5f1f30e84f2f95a9b094d33..e34cbc4e18485482467934c71d0935bb51433f88 100644 (file)
@@ -1201,7 +1201,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