meson: set native tool flag variables

As well as setting CC/CXX, export CFLAGS/CXXFLAGS and so on.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Ross Burton
2017-06-26 16:11:17 +01:00
committed by Martin Jansa
parent 529ae57ac9
commit 6fb9a9e7a2

View File

@@ -10,9 +10,13 @@ do_configure[cleandirs] = "${B}"
MESON_SOURCEPATH = "${S}"
# These variables in the environment override the *native* tools, not the cross.
export CPPFLAGS = "${BUILD_CPPFLAGS}"
export CC = "${BUILD_CC}"
export CFLAGS = "${BUILD_CFLAGS}"
export CXX = "${BUILD_CXX}"
export CXXFLAGS = "${BUILD_CXXFLAGS}"
export LD = "${BUILD_LD}"
export LDFLAGS = "${BUILD_LDFLAGS}"
export AR = "${BUILD_AR}"
export PKG_CONFIG = "pkg-config-native"