summaryrefslogtreecommitdiff
path: root/O3-support.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-09-26 12:59:44 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-09-26 12:59:44 -0700
commit61e81ad96f3da8dd74352c4784e5c8a9aa5279ad (patch)
tree8aefb5e43d2925489453fcffa198311345c88100 /O3-support.patch
parentAdd -pie (diff)
downloadcataclysm-dda-61e81ad96f3da8dd74352c4784e5c8a9aa5279ad.tar.xz
Enabled O3
Partly fixed broken desktop file
Diffstat (limited to 'O3-support.patch')
-rw-r--r--O3-support.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/O3-support.patch b/O3-support.patch
new file mode 100644
index 0000000..ab802cf
--- /dev/null
+++ b/O3-support.patch
@@ -0,0 +1,20 @@
+--- a/Makefile
++++ b/Makefile
+@@ -255,7 +261,7 @@
+ OPTLEVEL = -O0
+ else
+ ifeq ($(shell $(CXX) -E -Os - < /dev/null > /dev/null 2>&1 && echo fos),fos)
+- OPTLEVEL = -Os
++ OPTLEVEL = -O3
+ else
+ OPTLEVEL = -O3
+ endif
+@@ -266,7 +272,7 @@
+ ifeq ($(CXXMACHINE), x86_64-w64-mingw32.static)
+ OPTLEVEL = -O3
+ else
+- OPTLEVEL = -Os
++ OPTLEVEL = -O3
+ endif
+ endif
+ ifdef LTO