commit: d102ca15be045ed97a4d91783c8a261ba363c104 Author: Yuri Konotopov <ykonotopov <AT> gnome <DOT> org> AuthorDate: Mon May 6 11:34:41 2019 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Wed May 8 17:03:36 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d102ca15
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 <AT> gnome.org> Closes: https://github.com/gentoo/gentoo/pull/11915 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> games-emulation/pcsx2/pcsx2-9999.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-9999.ebuild index 8a2a3fc4c02..f287474f505 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 }