]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (with_gcc): Make the value of this option
authorGary V. Vaughan <gary@gnu.org>
Sun, 27 Aug 2000 11:14:32 +0000 (11:14 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 27 Aug 2000 11:14:32 +0000 (11:14 +0000)
available to the generated libtool script.
* ltmain.in (compile_command, finalize_command):  The native C
and C++ compilers on IRIX require the -LANG:std in order to to
compile correctly.   The same options should _not_ be passed
through to gcc on IRIX, or at all on other architectures for
backwards compatibility (among others).
Reported by Bob Freisenhahn <bfreisen@simple.dallas.tx.us>
Reported by Albert Chin-A-Young <china@thewrittenword.com>

ChangeLog
ltconfig.in
ltmain.in

index 9c3d44e52598e356135ee425f86d0fadef815c91..e303a3e89bce96fe9263f19d2e306d3385502a38 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2000-08-27  Gary V. Vaughan  <gvv@techie.com>
+
+       * ltconfig.in (with_gcc):  Make the value of this option
+       available to the generated libtool script.
+       * ltmain.in (compile_command, finalize_command):  The native C
+       and C++ compilers on IRIX require the -LANG:std in order to to
+       compile correctly.   The same options should _not_ be passed
+       through to gcc on IRIX, or at all on other architectures for
+       backwards compatibility (among others).
+       Reported by Bob Freisenhahn <bfreisen@simple.dallas.tx.us>
+       Reported by Albert Chin-A-Young <china@thewrittenword.com> 
+
 2000-08-26  Albert Chin-A-Young  <china@thewrittenword.com>
        
        * ltcf-cxx.sh (old_archive_cmds):  With IRIX C++ 7.3.1.1m, CC -ar
index d889ae0c249e737ec2f14e5e8429dbf83f4665e6..67dfacfb8be87cceca70c1b1d5765b3cf0885791 100755 (executable)
@@ -2090,6 +2090,9 @@ LTCC=$LTCC
 # A language-specific compiler.
 CC=$CC
 
+# Is the compiler the GNU C compiler?
+with_gcc=$with_gcc
+
 # The linker used to build libraries.
 LD=$LD
 
index dd77b642e6f9f9a0c365ef5805ca74f2af6298f5..745c6f2526f6e571158b7c562040fdbd326bda75 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1046,6 +1046,18 @@ EOF
        continue
        ;;
 
+      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+      # so, if we see these flags be careful not to treat them like -L
+      -L[A-Z][A-Z]*:*)
+       case $with_gcc/$host in
+       no/*-*-irix*)
+         compile_command="$compile_command $arg"
+         finalize_command="$finalize_command $arg"
+         ;;
+       esac
+       continue
+       ;;
+       
       -L*)
        dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
        # We need an absolute path.