aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2018-07-20 22:14:37 +0800
committerKhem Raj <raj.khem@gmail.com>2018-07-20 16:14:22 -0700
commit0aff7abedc1c7727c88029a123107f4faf5ba4f1 (patch)
tree57973f350de6b5699a32f723bbc66005c1637c5d /meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
parentda59f864945681521ea313de8b483f7593018948 (diff)
downloadmeta-openembedded-contrib-0aff7abedc1c7727c88029a123107f4faf5ba4f1.tar.gz
meta-openembedded-contrib-0aff7abedc1c7727c88029a123107f4faf5ba4f1.tar.bz2
meta-openembedded-contrib-0aff7abedc1c7727c88029a123107f4faf5ba4f1.zip
mozjs: add support for mips64-n32
- Tweak configure for mips64-n32 - Disable gold linker which not supported by mips64-n32 - Since n32 and n64 use the same registers, add n32 to n64's register definition. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb')
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb b/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
index 7909602825..599681215b 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
@@ -15,12 +15,18 @@ SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/main/m/mozjs52/mozjs52_52.8.1.o
SRC_URI_append_libc-musl = " \
file://0006-support-musl.patch \
"
+SRC_URI_append_mipsarchn32 = " \
+ file://0001-fix-compiling-failure-on-mips64-n32-bsp.patch \
+ "
SRC_URI[md5sum] = "3a44c2fd3d7b5a370ed9184163c74bc4"
SRC_URI[sha256sum] = "fb5e11b7f31a33be820d5c947c5fa114751b0d5033778c1cd8e0cf2dad91e8fa"
inherit autotools pkgconfig perlnative pythonnative
+inherit distro_features_check
+CONFLICT_DISTRO_FEATURES_mipsarchn32 = "ld-is-gold"
+
DEPENDS += "nspr zlib"
# nspr's package-config is ignored so set libs manually
@@ -31,6 +37,7 @@ EXTRA_OECONF = " \
--libdir=${libdir} \
--disable-tests \
--with-nspr-libs='-lplds4 -lplc4 -lnspr4' \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', "--enable-gold", '--disable-gold', d)} \
"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"