commit: 2f96f337e143e8b3f99f7aee3fe7325b81f3d2e0
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 20 11:36:36 2023 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Jul 20 11:59:42 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f96f337
games-fps/xonotic: export CPUOPTIMIZATIONS rather than pass
Handling of this variable changed a bit, and it (now) passes
-mno-avx to avoid subtle errors in physics. There's currently no
reason to override things it adds (+=) so just export it rather
than do a `append-flags -mno-avx` ourselves for parity.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-fps/xonotic/xonotic-0.8.6.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/games-fps/xonotic/xonotic-0.8.6.ebuild
b/games-fps/xonotic/xonotic-0.8.6.ebuild
index dba043261a73..9848e246cedb 100644
--- a/games-fps/xonotic/xonotic-0.8.6.ebuild
+++ b/games-fps/xonotic/xonotic-0.8.6.ebuild
@@ -60,13 +60,15 @@ src_prepare() {
src_compile() {
tc-export CC
+ # do not pass in array to keep the makefile.inc's += flags
+ local -x CPUOPTIMIZATIONS=${CFLAGS}
+
local emakeargs=(
-C source/darkplaces
DEFAULT_SNDAPI=$(usex alsa ALSA OSS)
DP_FS_BASEDIR="${EPREFIX}"/usr/share/${PN}
DP_LINK_ODE=$(usex ode shared no)
STRIP=:
- CPUOPTIMIZATIONS="${CFLAGS}"
GENTOO_LDFLAGS="${LDFLAGS}"
)