From 22be38e575992baa1cc6f64662d5cd192734fe42 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 24 Jul 2000 06:10:27 +0000 Subject: [PATCH] * ltcf-cxx.sh: Allow CC to have arguments. --- ChangeLog | 4 ++++ ltcf-cxx.sh | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0ae6a0ef8..86f6538e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-07-24 Michael Matz + + * ltcf-cxx.sh: Allow CC to have arguments. + 2000-07-24 Alexandre Oliva , David Kaelbling * ltmain.in (irix, major): Prepend a `.'. diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index 7f779e924..0b3d5c18e 100644 --- a/ltcf-cxx.sh +++ b/ltcf-cxx.sh @@ -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, -- 2.47.3