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