diff options
Diffstat (limited to 'games-simulation/openttd/files')
-rw-r--r-- | games-simulation/openttd/files/openttd-1.3.0-cflags.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/games-simulation/openttd/files/openttd-1.3.0-cflags.patch b/games-simulation/openttd/files/openttd-1.3.0-cflags.patch new file mode 100644 index 000000000000..135ae6e08f59 --- /dev/null +++ b/games-simulation/openttd/files/openttd-1.3.0-cflags.patch @@ -0,0 +1,42 @@ +--- config.lib.orig 2013-04-01 10:56:04.199921234 -0400 ++++ config.lib 2013-04-01 10:57:21.878371374 -0400 +@@ -1426,26 +1426,16 @@ + CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS" + LDFLAGS="$LDFLAGS -noixemul" + fi +- +- CFLAGS="-O2 -fomit-frame-pointer $CFLAGS" + else + OBJS_SUBDIR="debug" + + # Each debug level reduces the optimization by a bit + if [ $enable_debug -ge 1 ]; then +- CFLAGS="$CFLAGS -g -D_DEBUG" ++ CFLAGS="-D_DEBUG $CFLAGS" + if [ "$os" = "PSP" ]; then + CFLAGS="$CFLAGS -G0" + fi + fi +- if [ $enable_debug -ge 2 ]; then +- CFLAGS="$CFLAGS -fno-inline" +- fi +- if [ $enable_debug -ge 3 ]; then +- CFLAGS="$CFLAGS -O0" +- else +- CFLAGS="$CFLAGS -O2" +- fi + fi + + if [ $enable_debug -le 2 ]; then +@@ -1466,11 +1456,6 @@ + CFLAGS="$CFLAGS -fno-expensive-optimizations" + fi + +- if [ "$enable_profiling" != "0" ]; then +- CFLAGS="$CFLAGS -p" +- LDFLAGS="$LDFLAGS -pg" +- fi +- + if [ "$with_threads" = "0" ]; then + CFLAGS="$CFLAGS -DNO_THREADS" + fi |