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:
Mike Gilbert
2020-05-03 11:18:12 -04:00
parent 5cce4b1c5e
commit 2c8d90f4ac
+9 -3
View File
@@ -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