diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-05-06 19:51:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-05-06 19:51:02 +0000 |
commit | 2cf00a3619b38041b6f540e8700e16a4167db340 (patch) | |
tree | e623e44cdd968dca0481764b1ac2717aa3f7f81a /Makefile.in | |
parent | 8def9220345a634cea86a9cd6599b3f9e6aca5cf (diff) | |
download | binutils-gdb-2cf00a3619b38041b6f540e8700e16a4167db340.tar.gz |
* configure: Default CXX to c++, not gcc.
* Makefile.in (CXX): Set to c++, not gcc.
(CXX_FOR_TARGET): When cross, transform c++, not gcc.
This is to that $(CXX) and $(CXX_FOR_TARGET) can be used to link C++
programs as well as just compile C++ code.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 1890882a6b9..6479b87700b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -76,7 +76,7 @@ PICFLAG_FOR_TARGET = CHILLFLAGS = $(CFLAGS) CHILL_LIB = -lchill # end-sanitize-chill -CXX = gcc +CXX = c++ # Use -O2 to stress test the compiler. CXXFLAGS = -g -O2 @@ -223,7 +223,7 @@ CXX_FOR_TARGET = ` \ if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ echo $(CXX); \ else \ - t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \ + t='$(program_transform_name)'; echo c++ | sed -e 's/x/x/' $$t; \ fi; \ fi` |