bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool generates incorrect option for Solaris ld


From: Ralf Wildenhues
Subject: Re: libtool generates incorrect option for Solaris ld
Date: Mon, 2 Jul 2007 22:40:37 +0200
User-agent: Mutt/1.5.15 (2007-05-20)

Thanks for your feedback.  Does this patch work for you?

OK to apply to both branches?  Or do you think I should hack in
$reload_cmds, or do a full link (I fear a situation where we may have to
add some extra libraries for some obscure setup)?

Cheers,
Ralf

HEAD:
2007-07-02  Ralf Wildenhues  <address@hidden>

        * libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Cater to
        old Sparc Solaris 7 ld that does not understand `-64'.
        Report by Vincent Lefevre <address@hidden>.

Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.110
diff -u -r1.110 libtool.m4
--- libltdl/m4/libtool.m4       1 Jul 2007 20:55:13 -0000       1.110
+++ libltdl/m4/libtool.m4       2 Jul 2007 20:35:23 -0000
@@ -1201,7 +1201,11 @@
     *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


branch-1-5:
2007-07-02  Ralf Wildenhues  <address@hidden>

        * libtool.m4 (_LT_AC_LOCK) [ solaris ]: Cater to old Sparc
        Solaris 7 ld that does not understand `-64'.
        Report by Vincent Lefevre <address@hidden>.

Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.184
diff -u -r1.314.2.184 libtool.m4
--- libtool.m4  30 Jun 2007 09:32:01 -0000      1.314.2.184
+++ libtool.m4  2 Jul 2007 20:37:16 -0000
@@ -603,7 +603,11 @@
     *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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]