Don't assume the C++ compiler takes the same arguments as the C compiler.

This commit is contained in:
Paul Eggert
2004-05-30 18:58:00 +00:00
parent 0797198341
commit 8ed3234a14
3 changed files with 10 additions and 1 deletions

View File

@@ -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

View 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

View 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@'