From: Gary V. Vaughan Date: Sun, 27 Aug 2000 10:50:23 +0000 (+0000) Subject: * ltconfig.in (with_gcc): Make the value of this option X-Git-Tag: release-1-3d~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=656d1ca82444c444f31ad2973919376f71eb8d9b;p=thirdparty%2Flibtool.git * 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 --- diff --git a/ChangeLog b/ChangeLog index 88c704c94..2e9e0a0f4 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 Gary V. Vaughan * ltconfig.in (old_reload_flag): typo. diff --git a/ltconfig.in b/ltconfig.in index 5150b7c18..76e6558aa 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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 diff --git a/ltmain.in b/ltmain.in index 6afa74e1b..51ea646e4 100644 --- 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.