--- /dev/null
+Description: Disable the js JIT on x32.
+Author: Adam Borowski <kilobyte@angband.pl>
+Index: mozjs24-24.2.0/js/src/configure.in
+===================================================================
+--- mozjs24-24.2.0.orig/js/src/configure.in
++++ mozjs24-24.2.0/js/src/configure.in
+@@ -2072,6 +2072,8 @@ fi
+ dnl Configure JIT support
+
+ case "$target" in
++x86_64*-gnux32)
++ ;;
+ i?86-*)
+ ENABLE_METHODJIT=1
+ ENABLE_ION=1
+--- mozjs-24.2.0/js/src/configure~ 2013-12-11 23:23:20.000000000 +0100
++++ mozjs-24.2.0/js/src/configure 2015-03-23 22:55:24.995319443 +0100
+@@ -8243,6 +8243,8 @@
+
+
+ case "$target" in
++x86_64*-gnux32)
++ ;;
+ i?86-*)
+ ENABLE_METHODJIT=1
+ ENABLE_ION=1
Summary(pl.UTF-8): SpiderMonkey 17 - implementacja języka JavaScript 1.8.6
Name: mozjs17
Version: 17.0.0
-Release: 3
+Release: 4
License: MPL 1.1 or GPL v2+ or LGPL v2.1+
Group: Libraries
Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs%{version}.tar.gz
# Source0-md5: 20b6f8f1140ef6e47daa3b16965c9202
Patch0: perl.patch
+Patch1: Disable-js-JIT-on-x32.patch
URL: http://www.mozilla.org/js/
BuildRequires: libffi-devel >= 5:3.0.9
BuildRequires: libstdc++-devel
%prep
%setup -q -n mozjs%{version}
%patch0 -p1
+%patch1 -p1
%build
cd js/src