]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (aix3*, aix4*): GNU ld on AIX is very broken: it
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 14 Mar 1999 03:14:29 +0000 (03:14 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 14 Mar 1999 03:14:29 +0000 (03:14 +0000)
cannot create working shared libraries.  Print a warning
suggesting the user not to use it and disable shared libraries.

ChangeLog
ltconfig.in

index fa06145690571a6961098284bb56542310fca71d..cb1feac242cc88dc1024dc9da0f2469a600d26c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * ltconfig.in (aix3*, aix4*): GNU ld on AIX is very broken: it
+       cannot create working shared libraries.  Print a warning
+       suggesting the user not to use it and disable shared libraries.
+
 1999-03-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * ltconfig.in (global_symbol_to_cdecl): was reset before trying
index 3b3bc43cde77da60c70f2fb901a78617b162be22..d1196db26468250db0b970923e8bcd99e1f43a73 100755 (executable)
@@ -1018,11 +1018,6 @@ include_expsyms=
 exclude_expsyms=
 
 case "$host_os" in
-aix3* | aix4*)
-  # On AIX, the GNU linker works like the native linker.
-  with_gnu_ld=no
-  ;;
-
 cygwin* | mingw*)
   # FIXME: the MSVC++ port hasn't been tested in a loooong time
   # When not using gcc, we currently assume that we are using
@@ -1045,6 +1040,20 @@ if test "$with_gnu_ld" = yes; then
 
   # See if GNU ld supports shared libraries.
   case "$host_os" in
+  aix3* | aix4*)
+    # On AIX, the GNU linker is very broken
+    ld_shlibs=no
+    cat <<EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+    ;;
+
   amigaos*)
     archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
     hardcode_libdir_flag_spec='-L$libdir'
@@ -1891,7 +1900,7 @@ if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then
        egrep "$file_magic_regex" > /dev/null; then
       :
     else
-      cat <<EOF
+      cat <<EOF 1>&2
 
 *** Warning: the command libtool uses to detect shared libraries,
 *** $file_magic_cmd, produces output that libtool cannot recognize.