From 2f96f337e143e8b3f99f7aee3fe7325b81f3d2e0 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Thu, 20 Jul 2023 07:36:36 -0400 Subject: [PATCH] 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 --- 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 dba043261a732..9848e246cedb1 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}" )