diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-07-20 07:36:36 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-07-20 07:59:42 -0400 |
commit | 2f96f337e143e8b3f99f7aee3fe7325b81f3d2e0 (patch) | |
tree | 0b7e3ab29c365ecee1cb793257e3aeb6a2d9e8b9 /games-fps | |
parent | games-fps/xonotic: add 0.8.6 (diff) | |
download | gentoo-2f96f337e143e8b3f99f7aee3fe7325b81f3d2e0.tar.gz gentoo-2f96f337e143e8b3f99f7aee3fe7325b81f3d2e0.tar.bz2 gentoo-2f96f337e143e8b3f99f7aee3fe7325b81f3d2e0.zip |
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@gentoo.org>
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/xonotic/xonotic-0.8.6.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
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}" ) |