Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
December 11, 2013 11:10AM
Hello!

On Wed, Dec 11, 2013 at 07:01:38AM -0800, rand@sent.com wrote:

> > As you already have libpcre installed, you don't need nginx to
> > build it (and you don't need sources). If nginx isn't able to
> > find the pcre itself, use something like this to tell where to
> > look for headers and library:
> >
> > ./configure --with-cc-opt="-I/usr/local/include" \
> > --with-ld-opt="-L/usr/local/lib64"
>
> That's easy enough, then.
>
> I've built pcre, separately, with pcre-jit support enabled. Is that
> sufficient for nginx to use pcre-jit? I suspect that it is, and that
> "--with-pcrejit" is also simply a build-pcre-in-nginx flag?

The "--with-pcre-jit" configure option is documented to mean:

$ ./configure --help | grep jit
--with-pcre-jit build PCRE with JIT compilation support

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

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.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Maxim Dounin 1175 December 11, 2013 12:24AM

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

Anonymous User 481 December 11, 2013 12:24AM

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

Maxim Dounin 373 December 11, 2013 08:26AM

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

Anonymous User 327 December 11, 2013 10:02AM

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

Maxim Dounin 369 December 11, 2013 11:10AM

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

Anonymous User 320 December 11, 2013 01:06PM

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

Anonymous User 341 December 11, 2013 01:12PM

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

Ruslan Ermilov 340 December 12, 2013 06:50AM

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

Anonymous User 439 December 12, 2013 09:26AM

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

Maxim Dounin 364 December 11, 2013 12:30AM

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

Anonymous User 342 December 11, 2013 12:30AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 88
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready