2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-02-21 00:00:59 +03:00

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>
This commit is contained in:
Ionen Wolkens
2023-07-20 07:36:36 -04:00
parent 17d8226c45
commit 2f96f337e1

View File

@@ -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}"
)