]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix archive_cmds for older cc on HP-UX 11.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 12 Nov 2008 20:13:17 +0000 (21:13 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 12 Nov 2008 20:13:17 +0000 (21:13 +0100)
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [hp-ux11*, !GCC]
[!hppa*64*, !ia64*] <archive_cmds>: 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 <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
libltdl/m4/libtool.m4

index 11a84884e87209b2dee3ea11ae81fe9f079523c9..62f483a9e4c6386240e63b7794064037ee05569c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix archive_cmds for older cc on HP-UX 11.
+       * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [hp-ux11*, !GCC]
+       [!hppa*64*, !ia64*] <archive_cmds>: 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  <bonzini@gnu.org>
 
        * configure.ac: Bump Autoconf requirement.
diff --git a/THANKS b/THANKS
index 2f18f626083f89729204d026e3eb537b6a5c1399..66f705b23a96abc25de06f2df877aed8f56a49a3 100644 (file)
--- 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
index b193fc0c72be1c24428f60ffcbfb4837e45e430e..a51c47de18fe7b69c9d08886ce8f6302c95cae62 100644 (file)
@@ -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