aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2017-04-24 14:41:15 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-04-26 20:14:16 +0200
commita0b2e6f4fca7ac907eb7d6e06ca4c1581a5c553f (patch)
tree530145b4954e3957229a4668947ecd41572cae79
parent94699f3f855bbffbfcd76c44d2b17fd6b8b40b74 (diff)
downloadmeta-openembedded-contrib-a0b2e6f4fca7ac907eb7d6e06ca4c1581a5c553f.tar.gz
meta-openembedded-contrib-a0b2e6f4fca7ac907eb7d6e06ca4c1581a5c553f.tar.bz2
meta-openembedded-contrib-a0b2e6f4fca7ac907eb7d6e06ca4c1581a5c553f.zip
mozjs: prevent target CFLAGS etc being passed to the host
Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
index 6c9920ef41..b6744395fe 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
@@ -26,6 +26,11 @@ inherit autotools pkgconfig perlnative pythonnative
DEPENDS += "nspr zlib"
+# Host specific flags need to be defined, otherwise target flags will be passed to the host
+export HOST_CFLAGS = "${BUILD_CFLAGS}"
+export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}"
+export HOST_LDFLAGS = "${BUILD_LDFLAGS}"
+
# nspr's package-config is ignored so set libs manually
EXTRA_OECONF = " \
--target=${TARGET_SYS} \