|
29 | 29 | # Perl-compatible regular expressions instead of standard or extended
|
30 | 30 | # POSIX regular expressions.
|
31 | 31 | #
|
| 32 | +# When using USE_LIBPCRE1, define NO_LIBPCRE1_JIT if the PCRE v1 |
| 33 | +# library is compiled without --enable-jit. We will auto-detect |
| 34 | +# whether the version of the PCRE v1 library in use has JIT support at |
| 35 | +# all, but we unfortunately can't auto-detect whether JIT support |
| 36 | +# hasn't been compiled in in an otherwise JIT-supporting version. If |
| 37 | +# you have link-time errors about a missing `pcre_jit_exec` define |
| 38 | +# this, or recompile PCRE v1 with --enable-jit. |
| 39 | +# |
32 | 40 | # Define LIBPCREDIR=/foo/bar if your libpcre header and library files are in
|
33 | 41 | # /foo/bar/include and /foo/bar/lib directories.
|
34 | 42 | #
|
@@ -1094,6 +1102,10 @@ ifdef USE_LIBPCRE
|
1094 | 1102 | EXTLIBS += -L$(LIBPCREDIR)/$(lib) $(CC_LD_DYNPATH)$(LIBPCREDIR)/$(lib)
|
1095 | 1103 | endif
|
1096 | 1104 | EXTLIBS += -lpcre
|
| 1105 | + |
| 1106 | +ifdef NO_LIBPCRE1_JIT |
| 1107 | + BASIC_CFLAGS += -DNO_LIBPCRE1_JIT |
| 1108 | +endif |
1097 | 1109 | endif
|
1098 | 1110 |
|
1099 | 1111 | ifdef HAVE_ALLOCA_H
|
@@ -2241,6 +2253,7 @@ GIT-BUILD-OPTIONS: FORCE
|
2241 | 2253 | @echo NO_CURL=\''$(subst ','\'',$(subst ','\'',$(NO_CURL)))'\' >>$@+
|
2242 | 2254 | @echo NO_EXPAT=\''$(subst ','\'',$(subst ','\'',$(NO_EXPAT)))'\' >>$@+
|
2243 | 2255 | @echo USE_LIBPCRE1=\''$(subst ','\'',$(subst ','\'',$(USE_LIBPCRE)))'\' >>$@+
|
| 2256 | + @echo NO_LIBPCRE1_JIT=\''$(subst ','\'',$(subst ','\'',$(NO_LIBPCRE1_JIT)))'\' >>$@+ |
2244 | 2257 | @echo NO_PERL=\''$(subst ','\'',$(subst ','\'',$(NO_PERL)))'\' >>$@+
|
2245 | 2258 | @echo NO_PTHREADS=\''$(subst ','\'',$(subst ','\'',$(NO_PTHREADS)))'\' >>$@+
|
2246 | 2259 | @echo NO_PYTHON=\''$(subst ','\'',$(subst ','\'',$(NO_PYTHON)))'\' >>$@+
|
|
0 commit comments