]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (sunos4*, with_gnu_ld, hardcode_minus_L): remove, we
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Fri, 19 Mar 1999 19:50:38 +0000 (19:50 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 19 Mar 1999 19:50:38 +0000 (19:50 +0000)
have -rpath
(aix4*, without_gnu_ld, hardcode_shlibpath_var): unsupported is
default
(hpux9*, hpux10*, hpux11*, archive_cmds): drop +s, unneeded here
(hpux9*, hpux10*, hpux11*, hardcode_libdir_flag_spec): add +s
before +b
(hpux9*, hpux10*, hpux11*, shlibpath_overrides_runpath): since +s
appears before +b, set it to yes
(hardcode_shlibpath_var, hardcode_action): do not use
shlibpath_var to specify the compile-time search path; it loses,
and we may end up linking with pre-installed older versions of
libraries instead of yet-to-be-installed ones
(*, hardcode_direct, hardcode_minus_L): remove entries that set
them to no, that is default

ChangeLog
ltconfig.in

index eec33371055fe0ffeb3579b8347b21ece121abea..769ae97abe71f61402608997521ae37fda45a987 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
 1999-03-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in (sunos4*, with_gnu_ld, hardcode_minus_L): remove, we
+       have -rpath
+       (aix4*, without_gnu_ld, hardcode_shlibpath_var): unsupported is
+       default
+       (hpux9*, hpux10*, hpux11*, archive_cmds): drop +s, unneeded here
+       (hpux9*, hpux10*, hpux11*, hardcode_libdir_flag_spec): add +s
+       before +b
+       (hpux9*, hpux10*, hpux11*, shlibpath_overrides_runpath): since +s
+       appears before +b, set it to yes
+       (hardcode_shlibpath_var, hardcode_action): do not use
+       shlibpath_var to specify the compile-time search path; it loses,
+       and we may end up linking with pre-installed older versions of
+       libraries instead of yet-to-be-installed ones
+       (*, hardcode_direct, hardcode_minus_L): remove entries that set
+       them to no, that is default
+
        * demo/Makefile.am (hc-direct, hc-libpath, hc-minusL): link with
        $$hardcode_libdir_flag_spec, if available, with libdir=$(libdir),
        to make sure the hardcode_* variables will produce the expected
index 6766d1b9df0c4761afee3c976274aef202c0124d..b375ada5aea2e1a32dcefe286b04228ebe65f77e 100755 (executable)
@@ -1064,7 +1064,6 @@ EOF
     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
     wlarc=
     hardcode_direct=yes
-    hardcode_minus_L=yes
     hardcode_shlibpath_var=no
     ;;
 
@@ -1162,7 +1161,6 @@ else
     # Though LIBPATH variable hardcodes shlibpath into executable,
     # it doesn't affect searching for -l* libraries; this confuses
     # tests in mdemo.
-    hardcode_shlibpath_var=unsupported
     hardcode_libdir_flag_spec='-L$libdir'
    ;;
 
@@ -1203,7 +1201,6 @@ else
     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
     hardcode_libdir_flag_spec='-R$libdir'
     hardcode_direct=yes
-    hardcode_minus_L=no # verified on 2.2.6
     hardcode_shlibpath_var=no
     ;;
 
@@ -1220,25 +1217,22 @@ else
     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
     hardcode_libdir_flag_spec='-R$libdir'
     hardcode_direct=yes
-    hardcode_minus_L=no
     hardcode_shlibpath_var=no
     ;;
 
   hpux9*)
-    archive_cmds='$rm $objdir/$soname~$LD -b +s +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib'
-    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+    archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib'
+    hardcode_libdir_flag_spec='${wl}+s ${wl}+b ${wl}$libdir'
     hardcode_libdir_separator=:
     hardcode_direct=yes
-    hardcode_minus_L=no
     export_dynamic_flag_spec='${wl}-E'
     ;;
 
   hpux10* | hpux11*)
-    archive_cmds='$LD -b +h $soname +s +b $install_libdir -o $lib $libobjs $deplibs $linkopts'
-    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts'
+    hardcode_libdir_flag_spec='${wl}+s ${wl}+b ${wl}$libdir'
     hardcode_libdir_separator=:
     hardcode_direct=yes
-    hardcode_minus_L=no
     export_dynamic_flag_spec='${wl}-E'
     ;;
 
@@ -1322,8 +1316,6 @@ else
 
   sysv4.3*)
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
-    hardcode_direct=no
-    hardcode_minus_L=no
     hardcode_shlibpath_var=no
     export_dynamic_flag_spec='-Bexport'
     ;;
@@ -1331,16 +1323,12 @@ else
   uts4*)
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
     hardcode_libdir_flag_spec='-L$libdir'
-    hardcode_direct=no
-    hardcode_minus_L=no
     hardcode_shlibpath_var=no
     ;;
 
   dgux*)
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
     hardcode_libdir_flag_spec='-L$libdir'
-    hardcode_direct=no
-    hardcode_minus_L=no
     hardcode_shlibpath_var=no
     ;;
 
@@ -1544,10 +1532,12 @@ if test -n "$hardcode_libdir_flag_spec" || \
    test -n "$runpath_var"; then
 
   # We can hardcode non-existant directories.
-  if test "$hardcode_direct" != no && \
-     test "$hardcode_minus_L" != no && \
-     test "$hardcode_shlibpath_var" != no; then
-
+  if test "$hardcode_direct" != no &&
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test "$hardcode_shlibpath_var" != no &&
+     test "$hardcode_minus_L" != no; then
     # Linking always hardcodes the temporary library directory.
     hardcode_action=relink
   else
@@ -1708,6 +1698,7 @@ hpux9* | hpux10* | hpux11*)
   need_lib_prefix=no
   need_version=no
   shlibpath_var=SHLIB_PATH
+  shlibpath_overrides_runpath=yes # +s before +b in hardcode_libdir_flag_spec
   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
   soname_spec='${libname}${release}.sl$major'
   # HP-UX runs *really* slowly unless shared libraries are mode 555.