Modernize configure.ac's
[deliverable/binutils-gdb.git] / gdb / build-with-cxx.m4
index b6284fda2ffd284a0b678dd93dafd8bb21f31082..6eb9143479179b4c80eb5e304f866f164e0817a6 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 2014-2015 Free Software Foundation, Inc.
+dnl Copyright (C) 2014-2016 Free Software Foundation, Inc.
 dnl
 dnl This file is part of GDB.
 dnl
@@ -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)
 ])
This page took 0.022879 seconds and 4 git commands to generate.