summaryrefslogtreecommitdiff
path: root/lang/php71/patches/patch-ext_pcre_pcrelib_config.h
blob: 0607cf9e5ea75b1cb1574eb5edf8b78419ec9147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ext_pcre_pcrelib_config.h,v 1.1 2016/08/04 14:09:03 jdolecek Exp $

--- ext/pcre/pcrelib/config.h.orig	2016-02-02 16:32:32.000000000 +0000
+++ ext/pcre/pcrelib/config.h
@@ -397,7 +397,20 @@ them both to 0; an emulation function wi
 #undef SUPPORT_GCOV
 
 /* Define to any value to enable support for Just-In-Time compiling. */
-#define SUPPORT_JIT
+#if defined(__i386__) || defined(__i386) \
+|| defined(__x86_64__) \
+|| defined(__arm__) || defined(__ARM__) \
+|| defined (__aarch64__) \
+|| defined(__ppc64__) || defined(__powerpc64__) || defined(_ARCH_PPC64) \
+|| (defined(_POWER) && defined(__64BIT__)) \
+|| defined(__ppc__) || defined(__powerpc__) || defined(_ARCH_PPC) \
+|| defined(_ARCH_PWR) || defined(_ARCH_PWR2) || defined(_POWER) \
+|| (defined(__mips__) && !defined(_LP64)) \
+|| defined(__mips64) \
+|| defined(__sparc__) || defined(__sparc) \
+|| defined(__tilegx__)
+ #define SUPPORT_JIT
+#endif
 
 /* Define to any value to allow pcregrep to be linked with libbz2, so that it
    is able to handle .bz2 files. */