1 |
commit: d102ca15be045ed97a4d91783c8a261ba363c104 |
2 |
Author: Yuri Konotopov <ykonotopov <AT> gnome <DOT> org> |
3 |
AuthorDate: Mon May 6 11:34:41 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 8 17:03:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d102ca15 |
7 |
|
8 |
games-emulation/pcsx2: append -mxsave compiler flag with gcc >= 8.2 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/685156 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/11915 |
12 |
|
13 |
Signed-off-by: Yuri Konotopov <ykonotopov <AT> gnome.org> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/11915 |
15 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
16 |
|
17 |
games-emulation/pcsx2/pcsx2-9999.ebuild | 8 +++++++- |
18 |
1 file changed, 7 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-9999.ebuild |
21 |
index 8a2a3fc4c02..f287474f505 100644 |
22 |
--- a/games-emulation/pcsx2/pcsx2-9999.ebuild |
23 |
+++ b/games-emulation/pcsx2/pcsx2-9999.ebuild |
24 |
@@ -1,4 +1,4 @@ |
25 |
-# Copyright 1999-2018 Gentoo Authors |
26 |
+# Copyright 1999-2019 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
EAPI=6 |
30 |
@@ -45,6 +45,12 @@ pkg_setup() { |
31 |
if [[ $(gcc-major-version) -lt 4 || $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 8 ]] ; then |
32 |
die "${PN} does not compile with gcc less than 4.8" |
33 |
fi |
34 |
+ |
35 |
+ # -mxsave flag is needed when GCC >= 8.2 is used |
36 |
+ # https://bugs.gentoo.org/685156 |
37 |
+ if [[ $(gcc-major-version) -gt 8 || $(gcc-major-version) == 8 && $(gcc-minor-version) -ge 2 ]]; then |
38 |
+ append-flags -mxsave |
39 |
+ fi |
40 |
fi |
41 |
} |