Skip to content

Commit

Permalink
games-emulation/pcsx2: append -mxsave compiler flag with gcc >= 8.2
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/685156
Closes: gentoo#11915

Signed-off-by: Yuri Konotopov <ykonotopov@gnome.org>
  • Loading branch information
nE0sIghT committed May 6, 2019
1 parent 6387efa commit 424f34f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions games-emulation/pcsx2/pcsx2-9999.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -42,9 +42,15 @@ DEPEND="${RDEPEND}

pkg_setup() {
if [[ ${MERGE_TYPE} != binary && $(tc-getCC) == *gcc* ]]; then
if [[ $(gcc-major-version) -lt 4 || $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 8 ]] ; then
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
}

Expand Down

0 comments on commit 424f34f

Please sign in to comment.