summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-12-09 14:55:41 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2015-12-09 16:24:45 -0500
commitc7164b1f59cac01e1483c0781dd14af301c519cd (patch)
tree6013ffedfb688e9e35656400515c0d3d06fe50e3 /games-simulation/openttd/files/openttd-1.5.3-cflags.patch
parentneeds gnome-base/gnome-common to build (bug #567574) (diff)
downloadgentoo-c7164b1f59cac01e1483c0781dd14af301c519cd.tar.gz
gentoo-c7164b1f59cac01e1483c0781dd14af301c519cd.tar.bz2
gentoo-c7164b1f59cac01e1483c0781dd14af301c519cd.zip
version bump (bug #567814)
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'games-simulation/openttd/files/openttd-1.5.3-cflags.patch')
-rw-r--r--games-simulation/openttd/files/openttd-1.5.3-cflags.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/games-simulation/openttd/files/openttd-1.5.3-cflags.patch b/games-simulation/openttd/files/openttd-1.5.3-cflags.patch
new file mode 100644
index 000000000000..bb7f768b3798
--- /dev/null
+++ b/games-simulation/openttd/files/openttd-1.5.3-cflags.patch
@@ -0,0 +1,42 @@
+--- openttd-1.4.4/config.lib
++++ openttd-1.4.4/config.lib
+@@ -1450,12 +1450,6 @@
+ CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS"
+ LDFLAGS="$LDFLAGS -noixemul"
+ fi
+-
+- if [ "$enable_profiling" = "0" ]; then
+- # -fomit-frame-pointer and -pg do not go well together (gcc errors they are incompatible)
+- CFLAGS="-fomit-frame-pointer $CFLAGS"
+- fi
+- CFLAGS="-O2 $CFLAGS"
+ else
+ OBJS_SUBDIR="debug"
+
+@@ -1466,14 +1460,6 @@
+ 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
+@@ -1498,11 +1484,6 @@
+ CFLAGS="$CFLAGS -fno-expensive-optimizations"
+ fi
+
+- if [ "$enable_profiling" != "0" ]; then
+- CFLAGS="$CFLAGS -pg"
+- LDFLAGS="$LDFLAGS -pg"
+- fi
+-
+ if [ "$with_threads" = "0" ]; then
+ CFLAGS="$CFLAGS -DNO_THREADS"
+ fi