From 5f84f44f0f41ffbcd735e24504ceebf27f6de5e4 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sun, 27 Aug 2000 11:14:32 +0000 Subject: [PATCH] * 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 Reported by Albert Chin-A-Young --- ChangeLog | 12 ++++++++++++ ltconfig.in | 3 +++ ltmain.in | 12 ++++++++++++ 3 files changed, 27 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9c3d44e52..e303a3e89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2000-08-27 Gary V. Vaughan + + * 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 + Reported by Albert Chin-A-Young + 2000-08-26 Albert Chin-A-Young * ltcf-cxx.sh (old_archive_cmds): With IRIX C++ 7.3.1.1m, CC -ar diff --git a/ltconfig.in b/ltconfig.in index d889ae0c2..67dfacfb8 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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 diff --git a/ltmain.in b/ltmain.in index dd77b642e..745c6f252 100644 --- 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. -- 2.47.3