You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-simulation/openttd/files/openttd-1.3.3-cflags.patch

43 lines
1005 B

--- config.lib.orig
+++ config.lib
@@ -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