Add games-emulation/pcsx2-0.9.4.
[overlay.git] / games-emulation / pcsx2 / files / pcsx2-custom-cflags.patch
1 --- configure.ac.old    2008-03-02 14:49:49.564590000 +0000
2 +++ configure.ac        2008-03-02 14:52:53.589590315 +0000
3 @@ -11,10 +11,9 @@
4  dnl necessary for compiling assembly
5  AM_PROG_AS
6  
7 -CFLAGS=
8 -CPPFLAGS=
9 -CXXFLAGS=
10 -CCASFLAGS=
11 +CFLAGS="-O1 -finline-functions ${CFLAGS}"
12 +CXXFLAGS="-O1 -finline-functions ${CXXFLAGS}"
13 +CCASFLAGS="-O1 -finline-functions ${CCASFLAGS}"
14  
15  dnl Check for debug build
16  AC_MSG_CHECKING(debug build)
17 @@ -23,16 +22,10 @@
18  if test "x$debug" == xyes
19  then
20   AC_DEFINE(_DEBUG,1,[_DEBUG])
21 - CFLAGS+=" -g "
22 - CPPFLAGS+=" -g "
23 - CXXFLAGS+=" -g "
24 - CCASFLAGS+=" -D_DEBUG -g "
25 + CCASFLAGS+=" -D_DEBUG "
26   MYOBJDIR="Debug"
27  else
28   AC_DEFINE(NDEBUG,1,[NDEBUG])
29 - CFLAGS+=" -O3 -fomit-frame-pointer "
30 - CPPFLAGS+=" -O3 -fomit-frame-pointer "
31 - CXXFLAGS+=" -O3 -fomit-frame-pointer "
32   MYOBJDIR="Release"
33  fi
34  AC_MSG_RESULT($debug)