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

ChangeLog
libtool.m4

index d6e4264129b94454c21ce2b4772d26ef16b57997..64a26cf4abbeff9a55f3dfd3c2b5a4b8bdfc9d4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libtool.m4 (_LT_AC_LOCK) [ solaris ]: Cater to old Sparc
+       Solaris 7 ld that does not understand `-64'.
+       Report by Vincent Lefevre <vincent@vinc17.org>.
+
 2007-06-30  Peter Breitenlohner  <peb@mppmu.mpg.de>
 
        * libtool.m4 (AC_LIBTOOL_DLOPEN_SELF): Correct a typo ("-dld"
index a9b102ed8f673162ccf81e87d40f8bbd1644a90c..e0745c2c3c06ee0d9a1147944719dbe3c64a87ef 100644 (file)
@@ -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