summaryrefslogtreecommitdiff
path: root/package/mozjs/patches/patch-js_src_configure
diff options
context:
space:
mode:
Diffstat (limited to 'package/mozjs/patches/patch-js_src_configure')
-rw-r--r--package/mozjs/patches/patch-js_src_configure42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/mozjs/patches/patch-js_src_configure b/package/mozjs/patches/patch-js_src_configure
new file mode 100644
index 000000000..f2b4f62c4
--- /dev/null
+++ b/package/mozjs/patches/patch-js_src_configure
@@ -0,0 +1,42 @@
+--- mozjs17.0.0.orig/js/src/configure 2013-03-25 21:34:20.000000000 +0100
++++ mozjs17.0.0/js/src/configure 2014-01-09 18:00:47.000000000 +0100
+@@ -6037,39 +6037,6 @@ EOF
+ HAVE_ARM_SIMD=1
+ fi
+
+- echo $ac_n "checking for ARM NEON support in compiler""... $ac_c" 1>&6
+-echo "configure:6042: checking for ARM NEON support in compiler" >&5
+- # We try to link so that this also fails when
+- # building with LTO.
+- cat > conftest.$ac_ext <<EOF
+-#line 6046 "configure"
+-#include "confdefs.h"
+-
+-int main() {
+-asm(".fpu neon\n vadd.i8 d0, d0, d0");
+-; return 0; }
+-EOF
+-if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+- rm -rf conftest*
+- result="yes"
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- result="no"
+-fi
+-rm -f conftest*
+- echo "$ac_t"""$result"" 1>&6
+- if test "$result" = "yes"; then
+- cat >> confdefs.pytmp <<\EOF
+- (''' HAVE_ARM_NEON ''', ' 1 ')
+-EOF
+-cat >> confdefs.h <<\EOF
+-#define HAVE_ARM_NEON 1
+-EOF
+-
+- HAVE_ARM_NEON=1
+- fi
+ fi # CPU_ARCH = arm
+
+