From 0973f2de9afdeb7d2c90749198115b029513b272 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Wed, 12 Nov 2008 21:13:17 +0100 Subject: [PATCH] Fix archive_cmds for older cc on HP-UX 11. * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [hp-ux11*, !GCC] [!hppa*64*, !ia64*] : Older releases of the HP-UX 11.00 C compiler do not support -b yet; use a link test to decide whether $LD should be used for library creation. * THANKS: Update. Report by Daniel Richard G. Signed-off-by: Ralf Wildenhues --- ChangeLog | 10 ++++++++++ THANKS | 1 + libltdl/m4/libtool.m4 | 9 ++++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 11a84884..62f483a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-11-12 Ralf Wildenhues + + Fix archive_cmds for older cc on HP-UX 11. + * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [hp-ux11*, !GCC] + [!hppa*64*, !ia64*] : Older releases of the HP-UX + 11.00 C compiler do not support -b yet; use a link test to + decide whether $LD should be used for library creation. + * THANKS: Update. + Report by Daniel Richard G. + 2008-11-12 Paolo Bonzini * configure.ac: Bump Autoconf requirement. diff --git a/THANKS b/THANKS index 2f18f626..66f705b2 100644 --- a/THANKS +++ b/THANKS @@ -82,6 +82,7 @@ Craig Tierney Craig.Tierney@noaa.gov Dalibor Topic robilad@kaffe.org Daniel Reed n@ml.org + Daniel Richard G. skunk@iSKUNK.ORG DJ Delorie dj@delorie.com Edouard G. Parmelan Edouard.Parmelan@France.NCR.COM Erez Zadok ezk@shekel.mcl.cs.columbia.edu diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index b193fc0c..a51c47de 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -4713,7 +4713,14 @@ _LT_EOF _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + m4_if($1, [], [ + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + _LT_LINKER_OPTION([if $CC understands -b], + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi