]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (aix4*, hardcode_libdir_flag_spec): unless we're
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 30 Mar 1999 16:48:37 +0000 (16:48 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 30 Mar 1999 16:48:37 +0000 (16:48 +0000)
using gcc with old collect2, use -b libpath to hardcode the
library search path

ChangeLog
ltconfig.in

index 2e444be13d147cfa26b42562496049b0d1ef03c2..3c0b91a9ae0e3c667d14518e0b0fa1beffe03b9b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in (aix4*, hardcode_libdir_flag_spec): unless we're
+       using gcc with old collect2, use -b libpath to hardcode the
+       library search path
+
        * ltmain.in, ltconfig.in: reverted most of the quoting changes
        from 1999-03-25; Gary's delay_variable_subst patch from 1999-02-19 
        obviates it.  Keep only quoting of $PATH, for uniformity with
index 685551d24c6074b401cc61052cc4c278d94ae9d0..d2a668f2d887b633fb3b589503d29e03404980f6 100755 (executable)
@@ -1149,6 +1149,8 @@ else
 
   aix4*)
     allow_undefined_flag=
+    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
+    hardcode_libdir_separator=':'
     if test "$with_gcc" = yes; then
       if strings `${CC} -print-prog-name=collect2` | \
         grep resolve_lib_name >/dev/null
@@ -1158,6 +1160,12 @@ else
       else
        # We have old collect2
        hardcode_direct=unsupported
+       # It fails to find uninstalled libraries when the uninstalled
+       # path is not listed in the libpath.  Setting hardcode_minus_L
+       # to unsupported forces relinking
+       hardcode_minus_L=yes
+       hardcode_libdir_flag_spec='-L$libdir'
+       hardcode_libdir_separator=
       fi
       archive_cmds='$CC -shared ${wl}-bnoentry -o $objdir/$soname $libobjs $deplibs $linkopts'
     else
@@ -1165,11 +1173,6 @@ else
       archive_expsym_cmds='$CC -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bM:SRE ${wl}-bnoentry'
       hardcode_direct=yes
     fi
-    hardcode_minus_L=yes
-    # Though LIBPATH variable hardcodes shlibpath into executable,
-    # it doesn't affect searching for -l* libraries; this confuses
-    # tests in mdemo.
-    hardcode_libdir_flag_spec='-L$libdir'
    ;;
 
   amigaos*)