]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (aix): When LDFLAGS="-Wl,-brtl,[other options]",
authorAlbert Chin-A-Young <china@thewrittenword.com>
Fri, 11 Oct 2002 16:06:07 +0000 (16:06 +0000)
committerRobert Boehne <rboehne@gnu.org>
Fri, 11 Oct 2002 16:06:07 +0000 (16:06 +0000)
the "-brtl" special-case code for AIX never gets triggered
because were are being too specific about how we search for
"-brtl".  Use case statement to avoid this. Remove extraneous
semicolon.
* ltmain.in: Recognize the IBM xlc compiler family.

ChangeLog
libtool.m4
ltmain.in

index b52be4bca0b464b11560a27ab75ba15b4655015a..c3bab64e85b3b647144d9fbf402c1aff2698d0bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2002-10-11 Albert Chin-A-Young  <china@thewrittenword.com>
+
+       * libtool.m4 (aix): When LDFLAGS="-Wl,-brtl,[other options]",
+       the "-brtl" special-case code for AIX never gets triggered
+       because were are being too specific about how we search for
+       "-brtl".  Use case statement to avoid this. Remove extraneous
+       semicolon.
+       * ltmain.in: Recognize the IBM xlc compiler family.
+
 2002-10-11  Christoph Egger  <Christoph_Egger@gmx.de>
 
        * libtool.m4 (darwin): Add -install_name to the link line only
index 501faef0af7378e2127cb1ef9305ea0e4d9a0d23..682994aee60a75730f226d09a6d57a9261eb0781 100644 (file)
@@ -1464,10 +1464,12 @@ else
       # need to do runtime linking.
       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
        for ld_flag in $LDFLAGS; do
-         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+         case $ld_flag in
+         *-brtl*)
            aix_use_runtimelinking=yes
            break
-         fi
+         ;;
+         esac
        done
       esac
 
@@ -3667,7 +3669,7 @@ $debug ||
     # Check for GNU sed and select it if it is found.
     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
       lt_cv_path_SED=${_sed}
-      break;
+      break
     fi
     while true; do
       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
index 316f85d43ab71b8755816e33eae68ef4c5cb1de0..d8fa9b4ad65e68daf1ddd4defd2aaaae775c6c5a 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -226,7 +226,7 @@ if test -z "$show_help"; then
   # Infer the operation mode.
   if test -z "$mode"; then
     case $nonopt in
-    *cc | *++ | gcc* | *-gcc*)
+    *cc | *++ | gcc* | *-gcc* | xlc*)
       mode=link
       for arg
       do