Skip to contentSkip to conversation

mozjs: prevent target CFLAGS etc being passed to the host

PATCH New Andre McCurdy 1 participant 1 message Apr 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mozjs: prevent target CFLAGS etc being passed to the host

---
 meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb +5 -0
index 3424669..77d76c9 100644
@@ -27,6 +27,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} \
Signature · 1 line
1.9.1