* 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.
This commit is contained in:
Ian Lance Taylor 1997-05-06 19:51:02 +00:00
parent 8def922034
commit 2cf00a3619
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Tue May 6 15:49:52 1997 Ian Lance Taylor <ian@cygnus.com>
* configure: Default CXX to c++, not gcc.
* Makefile.in (CXX): Set to c++, not gcc.
(CXX_FOR_TARGET): When cross, transform c++, not gcc.
start-sanitize-ide
Tue May 6 11:23:57 1997 Ian Lance Taylor <ian@cygnus.com>

View File

@ -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`