aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-06-26 16:11:17 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-01 09:59:26 +0200
commit6fb9a9e7a2288d8cef253beb6c5ad0a7e5daa669 (patch)
treeaab595fe2e42d345d719e6efc99efc2065604a75 /meta-oe/classes
parent529ae57ac9a8997cbbce9614ca036e4b631bd7ef (diff)
downloadmeta-openembedded-6fb9a9e7a2288d8cef253beb6c5ad0a7e5daa669.tar.gz
meta-openembedded-6fb9a9e7a2288d8cef253beb6c5ad0a7e5daa669.tar.bz2
meta-openembedded-6fb9a9e7a2288d8cef253beb6c5ad0a7e5daa669.zip
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>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r--meta-oe/classes/meson.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass
index b5b2b3b7e..7eeff4210 100644
--- a/meta-oe/classes/meson.bbclass
+++ b/meta-oe/classes/meson.bbclass
@@ -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"