From d102ca15be045ed97a4d91783c8a261ba363c104 Mon Sep 17 00:00:00 2001 From: Yuri Konotopov Date: Mon, 6 May 2019 15:34:41 +0400 Subject: 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 Closes: https://github.com/gentoo/gentoo/pull/11915 Signed-off-by: Andreas Sturmlechner --- games-emulation/pcsx2/pcsx2-9999.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'games-emulation') 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 } -- cgit v1.2.3-65-gdbad