aboutsummaryrefslogtreecommitdiff
path: root/gdb/build-with-cxx.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/build-with-cxx.m4')
-rw-r--r--gdb/build-with-cxx.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/build-with-cxx.m4 b/gdb/build-with-cxx.m4
index d282092..6eb9143 100644
--- a/gdb/build-with-cxx.m4
+++ b/gdb/build-with-cxx.m4
@@ -33,8 +33,11 @@ AC_DEFUN([GDB_AC_BUILD_WITH_CXX],
if test "$enable_build_with_cxx" = "yes"; then
COMPILER='$(CXX)'
+ COMPILER_CFLAGS='$(CXXFLAGS)'
else
COMPILER='$(CC)'
+ COMPILER_CFLAGS='$(CFLAGS)'
fi
AC_SUBST(COMPILER)
+ AC_SUBST(COMPILER_CFLAGS)
])