]> git.saurik.com Git - bison.git/commitdiff
Don't assume the C++ compiler takes the same arguments as the C compiler.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 May 2004 18:58:00 +0000 (18:58 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 May 2004 18:58:00 +0000 (18:58 +0000)
ChangeLog
configure.ac
tests/atlocal.in

index 5d97691e97b1dfa3cf06f91ea19c23d173a40a1b..6487899b69014f1e534c8fa0e4ee7437245e5d49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-05-30  Albert Chin-A-Young  <china@thewrittenword.com>
+
+       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  <eggert@cs.ucla.edu>
 
        Fix some "make check" problems with C++ reported by
index 9cfc66b7e0c874dc82e5590845e8d4a73d27e46c..4b3737f95513fe115a7fec09c6f1fc71d5793e24 100644 (file)
@@ -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
index 54c65b145a2c89a382dd5663566389f016e809cf..2e034275437d80c6f136da886aa0f92a25945cec 100644 (file)
@@ -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@'