[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Solaris, combining a bunch of convenience archives
From: |
Ralf Wildenhues |
Subject: |
Re: Solaris, combining a bunch of convenience archives |
Date: |
Fri, 14 Oct 2005 16:52:30 +0200 |
User-agent: |
Mutt/1.5.11 |
* Ralf Wildenhues wrote on Thu, Oct 13, 2005 at 09:19:06AM CEST:
> * Albert Chin wrote on Wed, Oct 12, 2005 at 11:21:50PM CEST:
> >
> > If libtool sees -xarch=v9, it should add -64 to the linker
> > command-line.
>
> Yes, certainly. This solves the issue for branch-1-5, where we use
> `$LD' to link. (Of course, we could backport using $CC for linking
> instead, but mind the following.)
Here's a (pretty minimal) fix for branch-1-5. OK?
I don't have access to a 64-bit sparc system with GNU ld. Can anybody
confirm that `-m elf64_sparc' is the correct thing to add? (Without
confirmation I'll leave the GNU ld case empty before committing.)
Cheers,
Ralf
* libtool.m4 (_LT_AC_LOCK) [ solaris ]: Add `-64' to $LD if
necessary, to permit combining of several convenience libs
without any further objects added.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.115
diff -u -r1.314.2.115 libtool.m4
--- libtool.m4 9 Oct 2005 06:26:21 -0000 1.314.2.115
+++ libtool.m4 14 Oct 2005 13:34:35 -0000
@@ -574,6 +574,22 @@
CFLAGS="$SAVE_CFLAGS"
fi
;;
+sparc*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
+ *) LD="${LD-ld} -64" ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
- Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives, Peter O'Gorman, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives, Albert Chin, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives, Albert Chin, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/13
- Re: Solaris, combining a bunch of convenience archives,
Ralf Wildenhues <=
- Re: Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/26
- Re: Solaris, combining a bunch of convenience archives, Gary V. Vaughan, 2005/10/27