mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
meson.eclass: only default BUILD_FLAGS to FLAGS if not cross-compiling
Bug: https://bugs.gentoo.org/720818 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
+9
-3
@@ -288,9 +288,15 @@ meson_src_configure() {
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
tc-export_build_env
|
||||
: ${BUILD_FCFLAGS:=${FCFLAGS}}
|
||||
: ${BUILD_OBJCFLAGS:=${OBJCFLAGS}}
|
||||
: ${BUILD_OBJCXXFLAGS:=${OBJCXXFLAGS}}
|
||||
if tc-is-cross-compiler; then
|
||||
: ${BUILD_FCFLAGS:=-O1 -pipe}
|
||||
: ${BUILD_OBJCFLAGS:=-O1 -pipe}
|
||||
: ${BUILD_OBJCXXFLAGS:=-O1 -pipe}
|
||||
else
|
||||
: ${BUILD_FCFLAGS:=${FCFLAGS}}
|
||||
: ${BUILD_OBJCFLAGS:=${OBJCFLAGS}}
|
||||
: ${BUILD_OBJCXXFLAGS:=${OBJCXXFLAGS}}
|
||||
fi
|
||||
|
||||
local mesonargs=(
|
||||
meson setup
|
||||
|
||||
Reference in New Issue
Block a user