[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HP-UX hppa64 and gcc
From: |
Ralf Wildenhues |
Subject: |
Re: HP-UX hppa64 and gcc |
Date: |
Thu, 5 Jan 2006 14:03:49 +0100 |
User-agent: |
Mutt/1.5.11 |
Hi Roger, Albert,
* Albert Chin wrote on Wed, Jan 04, 2006 at 11:49:35PM CET:
> On Wed, Jan 04, 2006 at 10:19:27AM +0100, Roger While wrote:
> > Libtool 1.5.22
> > There is a problem on HP-UX 64 bit when using gcc.
> > Problem is at line 3167 in libtool.m4 :
> > _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
> >
> > gcc doesn't like that !
Thank you for the bug report.
> We can ditch hardcode_libdir_flag_spec_ld for HP-UX.
In the C++ case, yes, but for some HP-UX cases we use $LD still.
Wouldn't a better fix be something like this (not yet tested)?
Roger, could you try whether this works for you?
Actually, we should just ditch the variable altogether and compute it
anew from hardcode_libdir_flag_spec by emptying $wl if we decide to link
with $LD. (Not for branch-1-5, this would change interface.)
Cheers,
Ralf
* ltmain.in (link mode): Disregard
`hardcode_libdir_flag_spec_ld' if we're using `$CC' to link.
* libtool.m4 () [ hpux10, hpux11; hppa*64*, ia64* ]
<hardcode_libdir_flag_spec_ld>: Removed.
Reported by Roger While <address@hidden>.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.145
diff -u -r1.314.2.145 libtool.m4
--- libtool.m4 18 Dec 2005 22:14:06 -0000 1.314.2.145
+++ libtool.m4 5 Jan 2006 12:59:53 -0000
@@ -3163,9 +3169,7 @@
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
case $host_cpu in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
- ;;
+ hppa*64*|ia64*) ;;
*)
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
;;
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.115
diff -u -r1.334.2.115 ltmain.in
--- ltmain.in 18 Dec 2005 21:52:53 -0000 1.334.2.115
+++ ltmain.in 5 Jan 2006 12:59:53 -0000
@@ -3880,7 +3880,10 @@
test -n "$hardcode_libdirs"; then
libdir="$hardcode_libdirs"
if test -n "$hardcode_libdir_flag_spec_ld"; then
- eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
+ case $archive_cmds in
+ *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
+ *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
+ esac
else
eval dep_rpath=\"$hardcode_libdir_flag_spec\"
fi