]> 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 10:50:23 +0000 (10:50 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 27 Aug 2000 10:50:23 +0000 (10:50 +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 88c704c94ad98f64d3239a7d464284474c63241e..2e9e0a0f4a465b3027e3ae2b4e978e149b65b0bd 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  Gary V. Vaughan  <gvv@techie.com>
 
        * ltconfig.in (old_reload_flag): typo.
index 5150b7c18a606763791cd4f8306ca573417b85d8..76e6558aab982f487ffd6f301850de70366caf7d 100755 (executable)
@@ -2698,6 +2698,9 @@ AR_FLAGS=$AR_FLAGS
 # The default C compiler.
 CC=$CC
 
+# Is the compiler the GNU C compiler?
+with_gcc=$with_gcc
+
 # The linker used to build libraries.
 LD=$LD
 
index 6afa74e1b8ea3511bfa21705e7bee5d621ebaacb..51ea646e40389134f4caeabede13cc632aafc3dd 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -981,6 +981,18 @@ compiler."
        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.