diff options
author | Ross Burton <ross.burton@intel.com> | 2019-02-27 18:33:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-28 17:47:10 +0000 |
commit | ebee3ee60049596cef5e97f3ac970777f34a3c88 (patch) | |
tree | c5062189528087ad7189c19eb599d125ada71d04 /meta/recipes-support/libpcre/libpcre/out-of-tree.patch | |
parent | 263470b20e709b8ea1a446af9f022699971c7fff (diff) | |
download | poky-ebee3ee60049596cef5e97f3ac970777f34a3c88.tar.gz |
libpcre: enable JIT
PCRE has an optional JIT for performance.
Add a PACKAGECONFIG for this, enabled by default.
Also add a patch so that auto-detection of JIT availablity, which is required to
enable the JIT by default, works with out-of-tree builds.
(From OE-Core rev: 9421abbbf8fd6ff7c67ac8186a17d1c26583be6f)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libpcre/libpcre/out-of-tree.patch')
-rw-r--r-- | meta/recipes-support/libpcre/libpcre/out-of-tree.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-support/libpcre/libpcre/out-of-tree.patch b/meta/recipes-support/libpcre/libpcre/out-of-tree.patch new file mode 100644 index 0000000000..687dcc034d --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre/out-of-tree.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | In out-of-tree builds the #include fails because $srcdir isn't in the include path. Set CPPFLAGS so that it is. | ||
2 | |||
3 | Upstream-Status: Submitted [https://bugs.exim.org/show_bug.cgi?id=2379] | ||
4 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
5 | |||
6 | Index: configure.ac | ||
7 | =================================================================== | ||
8 | --- a/configure.ac (revision 1749) | ||
9 | +++ b/configure.ac (working copy) | ||
10 | @@ -159,6 +159,8 @@ | ||
11 | |||
12 | if test "$enable_jit" = "auto"; then | ||
13 | AC_LANG(C) | ||
14 | + SAVE_CPPFLAGS=$CPPFLAGS | ||
15 | + CPPFLAGS=-I$srcdir | ||
16 | AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ | ||
17 | #define SLJIT_CONFIG_AUTO 1 | ||
18 | #include "sljit/sljitConfigInternal.h" | ||
19 | @@ -165,6 +167,7 @@ | ||
20 | #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED) | ||
21 | #error unsupported | ||
22 | #endif]])], enable_jit=yes, enable_jit=no) | ||
23 | + CPPFLAGS=$SAVE_CPPFLAGS | ||
24 | fi | ||
25 | |||
26 | # Handle --disable-pcregrep-jit (enabled by default) | ||