]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
1999-01-20 Andrey Slepuhin <pooh@msu.ru>
authorAndrey Slepuhin <pooh@msu.ru>
Wed, 20 Jan 1999 20:35:54 +0000 (20:35 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 20 Jan 1999 20:35:54 +0000 (20:35 +0000)
* ltconfig.in (aix4*): check for reworked collect2, always pass
-bnoentry option to linker when building a shared library

ChangeLog
ltconfig.in

index 8e729b1f1fe29eab9b74445a63e6c5426d13f584..671bdecff97ae318374224e4c837c0ba7da61613 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-01-20  Andrey Slepuhin  <pooh@msu.ru>
+
+       * ltconfig.in (aix4*): check for reworked collect2, always pass
+       -bnoentry option to linker when building a shared library
+
 1999-01-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * ltmain.in (file_magic): follow soft-links before running `file'
index 8cf128693e40d9c9ea5aedb2d0541da27b115e8c..f0c557fe1ec431c904c3bc9f31a3084f891c50ce 100755 (executable)
@@ -600,7 +600,7 @@ if test "$with_gcc" = yes; then
     # list by gcc. This cause undefined symbols with -static flags.
     # This hack allows C programs to be linked with "-static -ldl", but
     # we not sure about C++ programs.
-    link_static_flag="$link_static_flag -Wl,-lC"
+    link_static_flag="$link_static_flag ${wl}-lC"
     ;;
   cygwin32* | mingw32* | os2*)
     # We can build DLLs from non-PIC.
@@ -1134,15 +1134,22 @@ else
   aix4*)
     allow_undefined_flag=
     if test "$with_gcc" = yes; then
-      # collect2 in egcs and probably latest gcc has full support for
-      # -shared flag, so we feel much better.
-      archive_cmds='$CC -shared -o $objdir/$soname $libobjs $deplibs'
+      if strings `${CC} -print-prog-name=collect2` | \
+         grep resolve_lib_name >/dev/null
+      then
+        # We have reworked collect2
+        hardcode_direct=yes
+      else
+        # We have old collect2
+        hardcode_direct=unsupported
+      fi
+      archive_cmds='$CC -shared -o ${wl}-bnoentry $objdir/$soname $libobjs $deplibs'
     else
       archive_cmds='$NM $libobjs | $global_symbol_pipe | sed '\''s/.* //'\' | sort | uniq' > $lib.exp        else cat $export_symbols > $lib.exp~
       $CC -o $objdir/$soname $libobjs $deplibs ${wl}-bE:$lib.exp ${wl}-bM:SRE ${wl}-bnoentry'
       archive_sym_cmds='$CC -o $objdir/$soname $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bM:SRE ${wl}-bnoentry'
+      hardcode_direct=yes
     fi
-    hardcode_direct=yes
     hardcode_minus_L=yes
     # Though LIBPATH variable hardcodes shlibpath into executable,
     # it doesn't affect searching for -l* libraries; this confuses