+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
# 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
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.