]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (can_build_shared) [AIX 4.[01], GCC]: GCC up to
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 6 Mar 2001 11:20:37 +0000 (11:20 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 6 Mar 2001 11:20:37 +0000 (11:20 +0000)
2.96 can't build shared libraries reliably.  Disable them.

ChangeLog
libtool.m4

index b64e7fffe0b764cc8266295482c044f5bf3566d2..c20c65977279492f9669c2ee84075a89e3a3b0c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-2001-03-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+2001-03-06  Alexandre Oliva  <aoliva@redhat.com>
+
+       * libtool.m4 (can_build_shared) [AIX 4.[01], GCC]: GCC up to
+       2.96 can't build shared libraries reliably.  Disable them.
 
        * ltmain.in: When dropping dependencies of a -no-undefined
        library, give up on building a shared library.
index 37856746bc3f7a1ab539b4d1a41f18db1de691a2..47322fb6b2efa261a17d3239f78d1f87eb391df8 100644 (file)
@@ -1769,6 +1769,22 @@ aix4*)
   # and later linker supports .so
   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
   shlibpath_var=LIBPATH
+  case $host_os in
+[  aix4 | aix4.[01] | aix4.[01].*)]
+    if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+        echo ' yes '
+        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+      :
+    else
+      # With GCC up to 2.95.x, collect2 would create an import file
+      # for dependence libraries.  The import file would start with
+      # the line `#! .'.  This would cause the generated library to
+      # depend on `.', always an invalid library.  This was fixed in
+      # development snapshots of GCC prior to 3.0.
+      can_build_shared=no
+    fi
+    ;;
+  esac
   ;;
 
 amigaos*)