From deef4a53144be30c2a8b6792e9f34c2387e7ff13 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 28 Jul 2003 11:46:32 +0000 Subject: correct cflags variables svn-id: r9241 --- Makefile.new | 3 +-- configure | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile.new b/Makefile.new index cb0014dbdb..6e01833ab1 100644 --- a/Makefile.new +++ b/Makefile.new @@ -17,7 +17,6 @@ CP := cp # Default compilation parameters. Normally don't edit these # ####################################################################### -CXXFLAGS:= -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -Wno-unknown-pragmas DEFINES := -DHAVE_CONFIG_H LDFLAGS := INCLUDES:= -I. -Icommon @@ -30,7 +29,7 @@ include config.mak # Uncomment this for stricter compile time code verification # CXXFLAGS+= -Wshadow -Werror -CXXFLAGS += $(OPTFLAGS) +CXXFLAGS:= -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -Wno-unknown-pragmas $(CXXFLAGS) ####################################################################### # Misc stuff - you should normally never have to edit this # diff --git a/configure b/configure index 98b6b57906..55edfe7633 100755 --- a/configure +++ b/configure @@ -22,7 +22,6 @@ TMPO=/tmp/scummvm-conf TMPC=${TMPO}.cpp TMPLOG=config.log -CFLAGS="" # default lib behaviour yes/no/auto _vorbis=auto @@ -254,11 +253,11 @@ if test "$cxx_verc_fail" = yes ; then fi # -# Do CFLAGS now we know the compiler version +# Do CXXFLAGS now we know the compiler version # if test "$_cxx_major" -ge "3" ; then - CFLAGS="$CFLAGS -ansi -W -Wno-unused-parameter" + CXXFLAGS="$CXXFLAGS -ansi -W -Wno-unused-parameter" fi; # @@ -536,7 +535,7 @@ cat > config.mak << EOF # -------- Generated by configure ----------- CXX := $CXX -OPTFLAGS := $CFLAGS +CXXFLAGS := $CXXFLAGS LIBS := $LIBS RANLIB := $_ranlib BACKEND := $_backend -- cgit v1.2.3