summaryrefslogtreecommitdiff
path: root/app-emulation/wine-starcraft/files/wine-1.6-memset-O3.patch
diff options
context:
space:
mode:
authorCtibor <ctibor@brancik.cz>2017-05-05 14:41:56 +0200
committerCtibor <ctibor@brancik.cz>2017-05-05 14:41:56 +0200
commit9bab6b447bf583a3e59829fee736e4ee3375b9f6 (patch)
tree6da6ecbe65489260da15e5dad4ef8f8c1528ba55 /app-emulation/wine-starcraft/files/wine-1.6-memset-O3.patch
parent4daa5e2ef492b6fce9dfa55b56ef7b84d634bf3c (diff)
downloadbrancik-overlay-9bab6b447bf583a3e59829fee736e4ee3375b9f6.tar.gz
brancik-overlay-9bab6b447bf583a3e59829fee736e4ee3375b9f6.tar.bz2
Add app-emulation/wine-starcraft
Diffstat (limited to 'app-emulation/wine-starcraft/files/wine-1.6-memset-O3.patch')
-rw-r--r--app-emulation/wine-starcraft/files/wine-1.6-memset-O3.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-emulation/wine-starcraft/files/wine-1.6-memset-O3.patch b/app-emulation/wine-starcraft/files/wine-1.6-memset-O3.patch
new file mode 100644
index 0000000..75372f8
--- /dev/null
+++ b/app-emulation/wine-starcraft/files/wine-1.6-memset-O3.patch
@@ -0,0 +1,21 @@
+Avoid "undefined reference to `memset'" error when building with
+USE=custom-cflags and -O3 in CFLAGS with gcc-4.8.
+
+See:
+
+http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888
+http://bugs.winehq.org/show_bug.cgi?id=33521
+https://bugs.gentoo.org/show_bug.cgi?id=480508
+
+diff --git a/configure.ac b/configure.ac
+index d8033cf..fe7cc7d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1767,6 +1767,7 @@ then
+
+ dnl Check for some compiler flags
+ WINE_TRY_CFLAGS([-fno-builtin],[AC_SUBST(BUILTINFLAG,"-fno-builtin")])
++ WINE_TRY_CFLAGS([-fno-tree-loop-distribute-patterns])
+ WINE_TRY_CFLAGS([-fno-strict-aliasing])
+ dnl clang needs to be told to fail on unknown options
+ saved_CFLAGS=$CFLAGS