From: | "Alexandre Rostovtsev (tetromino)" <tetromino@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-emulation/wine/files: wine-1.6-memset-O3.patch |
Date: | Sun, 01 Sep 2013 15:32:00 |
Message-Id: | 20130901153153.A997B2004E@flycatcher.gentoo.org |
1 | tetromino 13/09/01 15:31:53 |
2 | |
3 | Added: wine-1.6-memset-O3.patch |
4 | Log: |
5 | Fix USE=custom-cflags build with -O3 and recent gcc versions (bug #480508, thanks to Konstantin). |
6 | |
7 | (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-emulation/wine/files/wine-1.6-memset-O3.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/files/wine-1.6-memset-O3.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/files/wine-1.6-memset-O3.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: wine-1.6-memset-O3.patch |
16 | =================================================================== |
17 | Avoid "undefined reference to `memset'" error when building with |
18 | USE=custom-cflags and -O3 in CFLAGS with gcc-4.8. |
19 | |
20 | See: |
21 | |
22 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888 |
23 | http://bugs.winehq.org/show_bug.cgi?id=33521 |
24 | https://bugs.gentoo.org/show_bug.cgi?id=480508 |
25 | |
26 | diff --git a/configure.ac b/configure.ac |
27 | index d8033cf..fe7cc7d 100644 |
28 | --- a/configure.ac |
29 | +++ b/configure.ac |
30 | @@ -1767,6 +1767,7 @@ then |
31 | |
32 | dnl Check for some compiler flags |
33 | WINE_TRY_CFLAGS([-fno-builtin],[AC_SUBST(BUILTINFLAG,"-fno-builtin")]) |
34 | + WINE_TRY_CFLAGS([-fno-tree-loop-distribute-patterns]) |
35 | WINE_TRY_CFLAGS([-fno-strict-aliasing]) |
36 | dnl clang needs to be told to fail on unknown options |
37 | saved_CFLAGS=$CFLAGS |