]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: When LDFLAGS="-Wl,-brtl,[other options]", the
authorAlbert Chin-A-Young <china@thewrittenword.com>
Thu, 24 Oct 2002 23:59:11 +0000 (23:59 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 24 Oct 2002 23:59:11 +0000 (23:59 +0000)
-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.

ChangeLog
libtool.m4
ltmain.in

index bea2cd341891c5d3dd28bd622f30b4eb88218270..4833108778852679bde5e963571b65631512f60e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2002-10-25  Albert Chin-A-Young  <china@thewrittenword.com>
+
+       * libtool.m4: 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.
+
 2002-10-24  Andrew Suffield  <asuffield@debian.org>
 
        * libltdl/ltdl.c (lt_dlopenext): Corrected sense of "file not
index 7090ada64c503c012aa02b32d5bbc29b03581419..c9ce60f0d18cc05eedf626964cca1e9d4ee7bcd2 100644 (file)
@@ -2535,10 +2535,12 @@ case $host_os in
       # 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
 
@@ -5515,7 +5517,7 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
   # Check for GNU sed and select it if it is found.
   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
     lt_cv_path_SED=$lt_ac_sed
-    break;
+    break
   fi
   while true; do
     cat conftest.in conftest.in >conftest.tmp
index e0f688a6a97ce052c1445c2d8e6cacdb45eb6e22..75ddc3c7cf65c0134db11c745102b24722a5c633 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -269,7 +269,7 @@ if test -z "$show_help"; then
   # Infer the operation mode.
   if test -z "$mode"; then
     case $nonopt in
-    *cc | *++ | gcc* | *-gcc* | g++*)
+    *cc | *++ | gcc* | *-gcc* | g++* | xlc)
       mode=link
       for arg
       do