aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/mozjs24-aarch64-support.patch
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2017-03-27 13:28:33 +0300
committerEfraim Flashner <efraim@flashner.co.il>2017-03-28 09:34:44 +0300
commit26f38d313bd4ccece05610f762612daa0746dd44 (patch)
treeb9a4c5519b393885c6cf2e6b625b53655dd61c2e /gnu/packages/patches/mozjs24-aarch64-support.patch
parentb4f67b7ebb44fa0a6c8abeb4d6fc3bb2ac2de329 (diff)
downloadguix-26f38d313bd4ccece05610f762612daa0746dd44.tar
guix-26f38d313bd4ccece05610f762612daa0746dd44.tar.gz
gnu: mozjs@24: Add aarch64-support.
* gnu/packages/gnuzilla.scm (mozjs@24)[source]: Add patch. [arguments]: Add flag for building on aarch64-linux, delete failing test. * gnu/packages/patches/mozjs24-aarch64-support.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches/mozjs24-aarch64-support.patch')
-rw-r--r--gnu/packages/patches/mozjs24-aarch64-support.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/patches/mozjs24-aarch64-support.patch b/gnu/packages/patches/mozjs24-aarch64-support.patch
new file mode 100644
index 0000000000..9dca8e500c
--- /dev/null
+++ b/gnu/packages/patches/mozjs24-aarch64-support.patch
@@ -0,0 +1,21 @@
+This patch is sourced from Debian's mozjs24 patch set.
+
+Description: Add arm64 support
+Author: Andreas Schwab <schwab@suse.de>
+Origin: vendor, https://build.opensuse.org/package/view_file/openSUSE:Factory/mozjs17/mozjs-aarch64-support.patch
+Forwarded: no
+Last-Update: 2014-01-03
+
+Index: b/mfbt/double-conversion/utils.h
+===================================================================
+--- a/mfbt/double-conversion/utils.h
++++ b/mfbt/double-conversion/utils.h
+@@ -58,7 +58,7 @@
+ defined(__mips__) || defined(__powerpc__) || \
+ defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
+ defined(__SH4__) || defined(__alpha__) || \
+- defined(_MIPS_ARCH_MIPS32R2)
++ defined(_MIPS_ARCH_MIPS32R2) || defined(__aarch64__)
+ #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
+ #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
+ #if defined(_WIN32)