From 8ed3234a14bcb83ac43b777bc7a85328ae9526ae Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 30 May 2004 18:58:00 +0000 Subject: [PATCH] Don't assume the C++ compiler takes the same arguments as the C compiler. --- ChangeLog | 7 +++++++ configure.ac | 2 ++ tests/atlocal.in | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5d97691e..6487899b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-05-30 Albert Chin-A-Young + + Don't assume the C++ compiler takes the same arguments as the C compiler + (trivial change). + * configure.ac (O0CXXFLAGS): New var. + * tests/atlocal.in (CXXFLAGS): Use it. + 2004-05-29 Paul Eggert Fix some "make check" problems with C++ reported by diff --git a/configure.ac b/configure.ac index 9cfc66b7..4b3737f9 100644 --- a/configure.ac +++ b/configure.ac @@ -122,6 +122,8 @@ AM_MISSING_PROG([AUTOM4TE], [autom4te]) AC_SUBST([GCC]) O0CFLAGS=`echo $CFLAGS | sed 's/-O[0-9] *//'` AC_SUBST([O0CFLAGS]) +O0CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9] *//'` +AC_SUBST([O0CXXFLAGS]) AC_CONFIG_FILES([Makefile config/Makefile diff --git a/tests/atlocal.in b/tests/atlocal.in index 54c65b14..2e034275 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -21,7 +21,7 @@ CXX='@CXX@' BISON_CXX_WORKS='@BISON_CXX_WORKS@' # We want no optimization with C++, too. -CXXFLAGS='@O0CFLAGS@ @WARNING_CXXFLAGS@ @WERROR_CFLAGS@' +CXXFLAGS='@O0CXXFLAGS@ @WARNING_CXXFLAGS@ @WERROR_CFLAGS@' # Are special link options needed? LDFLAGS='@LDFLAGS@' -- 2.45.2