diff options
author | Yuri Konotopov <ykonotopov@gnome.org> | 2019-05-06 15:34:41 +0400 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-05-08 19:03:36 +0200 |
commit | d102ca15be045ed97a4d91783c8a261ba363c104 (patch) | |
tree | adba8bc9a735100ca751d81791b9fea365205db2 | |
parent | profiles: x86: move media-video/vlc[dav1d] to p.use.stable.mask (diff) | |
download | gentoo-d102ca15be045ed97a4d91783c8a261ba363c104.tar.gz gentoo-d102ca15be045ed97a4d91783c8a261ba363c104.tar.bz2 gentoo-d102ca15be045ed97a4d91783c8a261ba363c104.zip |
games-emulation/pcsx2: append -mxsave compiler flag with gcc >= 8.2
Closes: https://bugs.gentoo.org/685156
Closes: https://github.com/gentoo/gentoo/pull/11915
Signed-off-by: Yuri Konotopov <ykonotopov@gnome.org>
Closes: https://github.com/gentoo/gentoo/pull/11915
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r-- | games-emulation/pcsx2/pcsx2-9999.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-9999.ebuild index 8a2a3fc4c024..f287474f5059 100644 --- a/games-emulation/pcsx2/pcsx2-9999.ebuild +++ b/games-emulation/pcsx2/pcsx2-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -45,6 +45,12 @@ pkg_setup() { if [[ $(gcc-major-version) -lt 4 || $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 8 ]] ; then die "${PN} does not compile with gcc less than 4.8" fi + + # -mxsave flag is needed when GCC >= 8.2 is used + # https://bugs.gentoo.org/685156 + if [[ $(gcc-major-version) -gt 8 || $(gcc-major-version) == 8 && $(gcc-minor-version) -ge 2 ]]; then + append-flags -mxsave + fi fi } |