mozjs: Make mozjs support arm32BE.

Fixed a build error on arm32BE.

Upstream-Status: Pending

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
leimaohui
2019-04-20 12:53:41 +08:00
committed by Khem Raj
parent d703b5984e
commit 7b503471b0
2 changed files with 29 additions and 0 deletions
@@ -0,0 +1,28 @@
From 9afb0e4d3b9209ea198052cea0401bef7ee25ad8 Mon Sep 17 00:00:00 2001
From: Lei Maohui <leimaohui@cn.fujitsu.com>
Date: Thu, 9 May 2019 12:23:40 +0900
Subject: [PATCH] To fix build error on arm32BE.
error: #error Target architecture was not detected as supported by Double-Conversion.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
---
mfbt/double-conversion/utils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h
index 4f37218..93575cb 100644
--- a/mfbt/double-conversion/utils.h
+++ b/mfbt/double-conversion/utils.h
@@ -53,7 +53,7 @@
// disabled.)
// On Linux,x86 89255e-22 != Div_double(89255.0/1e22)
#if defined(_M_X64) || defined(__x86_64__) || \
- defined(__ARMEL__) || defined(__avr32__) || \
+ defined(__arm__) || defined(__avr32__) || \
defined(__hppa__) || defined(__ia64__) || \
defined(__mips__) || \
defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \
--
2.7.4
@@ -16,6 +16,7 @@ SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/main/m/mozjs52/mozjs52_52.9.1.o
file://0001-mozjs-fix-coredump-caused-by-getenv.patch \ file://0001-mozjs-fix-coredump-caused-by-getenv.patch \
file://format-overflow.patch \ file://format-overflow.patch \
file://JS_PUBLIC_API.patch \ file://JS_PUBLIC_API.patch \
file://0001-To-fix-build-error-on-arm32BE.patch \
" "
SRC_URI_append_libc-musl = " \ SRC_URI_append_libc-musl = " \
file://0006-support-musl.patch \ file://0006-support-musl.patch \