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 <[EMAIL PROTECTED]> * libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Cater to old Sparc Solaris 7 ld that does not understand `-64'. Report by Vincent Lefevre <[EMAIL PROTECTED]>. 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 <[EMAIL PROTECTED]> * libtool.m4 (_LT_AC_LOCK) [ solaris ]: Cater to old Sparc Solaris 7 ld that does not understand `-64'. Report by Vincent Lefevre <[EMAIL PROTECTED]>. 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 _______________________________________________ Bug-libtool mailing list Bug-libtool@gnu.org http://lists.gnu.org/mailman/listinfo/bug-libtool