[oe-commits] [meta-openembedded] 01/03: mozjs: prevent target CFLAGS etc being passed to the host
git at git.openembedded.org
git at git.openembedded.org
Tue Apr 25 12:44:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.
commit 75536c5f108fa99948ce607769e5cb3ce5004294
Author: Andre McCurdy <armccurdy at gmail.com>
AuthorDate: Mon Apr 24 14:41:15 2017 -0700
mozjs: prevent target CFLAGS etc being passed to the host
Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb | 5 +++++
1 file changed, 5 insertions(+)
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 6c9920e..b674439 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} \
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list