]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltcf-cxx.sh [HP-UX GNU ld]: Don't use flags specific to the
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 20 Apr 2001 08:53:18 +0000 (08:53 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 20 Apr 2001 08:53:18 +0000 (08:53 +0000)
HP-UX linker.

ChangeLog
ltcf-cxx.sh

index 10f5055186e24a5c873349c687194b16c2746bd2..1da26a961a792cbcef70a56f1d3029a56b45e8b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-20  Alexandre Oliva  <aoliva@redhat.com>
+
+       * ltcf-cxx.sh [HP-UX GNU ld]: Don't use flags specific to the
+       HP-UX linker.
+
 2001-04-18  Alexandre Oliva  <aoliva@redhat.com>
 
        * TODO: Add -L- flag.
index aefc206f9e86868a68290eeea8fafd9a703141d1..e3489146422dc1613865f5f355ad0ca80e171e92 100644 (file)
@@ -243,12 +243,14 @@ case $host_os in
     ld_shlibs=yes
     ;;
   hpux*)
-    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
-    hardcode_libdir_separator=:
+    if test $with_gnu_ld = no; then
+      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+      hardcode_libdir_separator=:
+      export_dynamic_flag_spec='${wl}-E'
+    fi
     hardcode_direct=yes
     hardcode_minus_L=yes # Not in the search PATH, but as the default
                         # location of the library.
-    export_dynamic_flag_spec='${wl}-E'
 
     case $cc_basename in
       CC)
@@ -272,10 +274,12 @@ case $host_os in
         ;;
       *)
         if test $with_gcc = yes; then
-         case "$host_os" in
-         hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
-         *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
-         esac
+         if test $with_gnu_ld = no; then
+           case "$host_os" in
+           hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
+           *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
+           esac
+         fi
        else
          # FIXME: insert proper C++ library support
           ld_shlibs=no