[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sync C++ linking on HEAD with branch-1-5
From: |
Ralf Wildenhues |
Subject: |
Re: Sync C++ linking on HEAD with branch-1-5 |
Date: |
Thu, 10 Nov 2005 19:29:46 +0100 |
User-agent: |
Mutt/1.5.11 |
Hi Albert,
* Albert Chin wrote on Thu, Nov 10, 2005 at 03:32:10AM CET:
> On Wed, Nov 09, 2005 at 08:23:05PM -0600, Albert Chin wrote:
> > On Wed, Nov 09, 2005 at 09:51:12PM +0100, Ralf Wildenhues wrote:
> > > * Albert Chin wrote on Wed, Nov 09, 2005 at 05:11:09PM CET:
> > > It's hpux10*|hpux11*, and hppa*64*|ia64*, and aCC|g++, right?
> >
> > I can vouch for it on hpux11*, hppa*64*, and ia64*, for aCC and g++.
> > We don't have hpux10* to test it on.
> Actually, looking at my patch, it only changes it for hppa*64, ia64*.
> aCC, on these platforms, is always the correct method to link shared
> libraries.
Thanks for checking all this. I have applied the patch to CVS HEAD and
branch-1-5, the latter shown below.
Cheers,
Ralf
2005-11-10 Albert Chin-A-Young <address@hidden>
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG) [ hpux10, hpux11 ]
<hppa*64,ia64, aCC,g++>:
Use C++ compiler for linking rather than ld.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.127
diff -u -r1.314.2.127 libtool.m4
--- libtool.m4 9 Nov 2005 22:37:42 -0000 1.314.2.127
+++ libtool.m4 10 Nov 2005 18:28:21 -0000
@@ -3171,7 +3171,7 @@
aCC*)
case $host_cpu in
hppa*64*|ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib
$linker_flags $libobjs $deplibs'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
;;
*)
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b
${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects
$compiler_flags'
@@ -3192,7 +3192,7 @@
if test $with_gnu_ld = no; then
case $host_cpu in
ia64*|hppa*64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib
$linker_flags $libobjs $deplibs'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC
${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects
$compiler_flags'
;;
*)
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC
${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags'