* 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>
This commit is contained in:
Gary V. Vaughan 2000-08-27 10:50:23 +00:00
parent 476d780ec2
commit 656d1ca824
3 changed files with 27 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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.