[PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

rand at sent.com rand at sent.com
Wed Dec 11 18:04:02 UTC 2013


> > >      ./configure --with-cc-opt="-I/usr/local/include" \
> > >                  --with-ld-opt="-L/usr/local/lib64"

works as promised,

...
make
ldd objs/nginx | egrep -i pcre
        libpcre.so.1 => /usr/local/lib64/libpcre.so.1
        (0x00007fc62c7e7000)

Thanks.

> That is, it's only applies when nginx is going to build PCRE library itself.

Clear.

> To actually activate JIT compilation, you'll also need to use 
> pcre_jit directive, see nginx.org/r/pcre_jit.
> 
> Note that use of PCRE JIT may actually result in lower performance 
> (due to more memory used to compiled regular expressions, and less 
> effective CPU cache as a result), enabling it unconditionally may 
> not be a good idea.

Noted.

Thanks!



More information about the nginx-devel mailing list