summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-31 17:25:41 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-31 17:25:41 +0000
commita44c8c3b1ee8ae1779fd8ee1ad556ed86a608bd2 (patch)
treee88d1126cb49f12ae276830176979bf2a5075453 /gcc/configure
parent0f2461978ad48e198ae1ebd0db9bb57bae3ae83e (diff)
downloadgcc-a44c8c3b1ee8ae1779fd8ee1ad556ed86a608bd2.tar.gz
Fix compilation of build/*.o when using C++.
Found this while testing the C++ conversion for vec.[ch] on the cxx-conversion branch. We do not build the build/*.o files with g++, so I was getting lots of syntax errors while compiling build/vec.o. 2012-05-31 Diego Novillo <dnovillo@google.com> * configure.ac (CXX_FOR_BUILD): Define and substitute. (BUILD_CXXFLAGS): Define and substitute. * Makefile.in (BUILD_CXXFLAGS): Define. (CXX_FOR_BUILD): Define. (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++. (LINKER_FOR_BUILD): Likewise. (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++. (BUILD_LINKERFLAGS): Likewise. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188069 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure
index 1cd61344511..1fdf0af80ca 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -703,7 +703,9 @@ LIBTOOL
collect2
STMP_FIXINC
BUILD_LDFLAGS
+BUILD_CXXFLAGS
BUILD_CFLAGS
+CXX_FOR_BUILD
CC_FOR_BUILD
inhibit_libc
SYSTEM_HEADER_DIR
@@ -11835,7 +11837,9 @@ fi
# These are the normal (build=host) settings:
CC_FOR_BUILD='$(CC)'
+CXX_FOR_BUILD='$(CXX)'
BUILD_CFLAGS='$(ALL_CFLAGS)'
+BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
BUILD_LDFLAGS='$(LDFLAGS)'
STMP_FIXINC=stmp-fixinc
@@ -17967,7 +17971,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 17970 "configure"
+#line 17974 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -18073,7 +18077,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18076 "configure"
+#line 18080 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H