mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 04:37:01 +00:00
Make default optimization -O2 when building using *nix tools.
Allow CXXFLAGS to override the default flags when not using --enable-debug.
This commit is contained in:
parent
8ac54337b0
commit
a73c9120f5
@ -60,9 +60,9 @@ AC_ARG_ENABLE([debug],
|
||||
|
||||
if test "x$debug" = "xyes"
|
||||
then
|
||||
CXXFLAGS="$CXXFLAGS -DDEBUG -O0 -ggdb3 -W -Wall -ansi "
|
||||
CXXFLAGS="$CXXFLAGS -O0 -DDEBUG -ggdb3 -W -Wall -ansi"
|
||||
else
|
||||
CXXFLAGS="$CXXFLAGS -W -Wall -ansi "
|
||||
CXXFLAGS="-O2 -W -Wall -ansi $CXXFLAGS"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE([static],
|
||||
|
Loading…
x
Reference in New Issue
Block a user