mirror of https://github.com/snes9xgit/snes9x.git
Don't set optimize flags if using custom CFLAGS. User flags would override these anyway, so this is just a cleanup.
This commit is contained in:
parent
78d2b51efe
commit
7c4d1566f7
|
@ -1,8 +1,15 @@
|
|||
AC_INIT([snes9x-gtk], 1.53)
|
||||
dnl Set CFLAGS, CXXFLAGS to something
|
||||
dnl before doing AC_PROG_CC, AC_PROG_CXX to avoid default -g
|
||||
CFLAGS="-Os -Wall -W -pedantic -Wno-unused-parameter -pipe $CFLAGS"
|
||||
CXXFLAGS="$CFLAGS"
|
||||
|
||||
if test -z "$CFLAGS"; then
|
||||
CFLAGS="-Os -pipe"
|
||||
fi
|
||||
if test -z "$CXXFLAGS"; then
|
||||
CXXFLAGS="$CFLAGS"
|
||||
fi
|
||||
|
||||
EXTRA_FLAGS="-Wall -W -pedantic -Wno-unused-parameter"
|
||||
CFLAGS="$CFLAGS $EXTRA_FLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $EXTRA_FLAGS"
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
|
|
Loading…
Reference in New Issue