]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltcf-cxx.sh: Allow CC to have arguments.
authorMichael Matz <matz@ifh.de>
Mon, 24 Jul 2000 06:10:27 +0000 (06:10 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 24 Jul 2000 06:10:27 +0000 (06:10 +0000)
ChangeLog
ltcf-cxx.sh

index 0ae6a0ef8704dcc9e262e01694b9b3d8bfd8c678..86f6538e0fabe3d6c4d3a5f756a537c4fce16318 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-24  Michael Matz  <matz@ifh.de>
+
+       * ltcf-cxx.sh: Allow CC to have arguments.
+
 2000-07-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>, David Kaelbling  <drk@orchietta.hudson.sgi.com>
 
        * ltmain.in (irix, major): Prepend a `.'.
index 7f779e924372e2b9c3d7dbc815ff096830922691..0b3d5c18e5cb9bef014b1d29412bf5617811c0e4 100644 (file)
@@ -45,16 +45,16 @@ lt_simple_compile_test_code="int some_variable = 0;"
 lt_simple_link_test_code='int main(int, char *[]) { return (0); }'
 
 # C++ compiler
-# Allow CXX to be a program name with arguments.
-set dummy $CXX
-compiler=$2
 CXX=${CXX-c++}
 
 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
-set dummy $CC
 CC=${CC-"$CXX"}
 CFLAGS=${CFLAGS-"$CXXFLAGS"}
-cc_basename=`$echo X"$CC" | $Xsed -e 's%^.*/%%'`
+
+# Allow CC to be a program name with arguments.
+set dummy $CC
+compiler=$2
+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
 # Check if we are using GNU gcc  (taken/adapted from configure script)
 # We need to check here since "--with-gcc" is set at configure time,