Actually build a debug exe in strict-debug mode; bug #1127; from Scott A. Colcord

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3624 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2011-06-24 17:38:12 +00:00
parent 96aebd36ba
commit e9e336e92c
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -151,7 +151,7 @@ uqm_prepare_config()
;;
*)
CFLAGS="$CFLAGS -O1" # This is needed for -Wunitialized
CFLAGS="$CFLAGS -W -Wall \
CFLAGS="$CFLAGS -g -DDEBUG -W -Wall \
-Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
-Wstrict-prototypes -Wmissing-declarations \
-Wwrite-strings -Wimplicit -Wreturn-type -Wformat \
@@ -179,6 +179,7 @@ uqm_prepare_config()
CFLAGS=`echo $CFLAGS`
# Remove all the unnecessary spaces from $CFLAGS,
# for more readable messages.
LDFLAGS="$LDFLAGS -O0"
;;
esac
DEBUG=1