Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Use pcre-config to set ngx_feature_path and ngx_feature_libs

All files from this thread

File Name File Size   Posted by Date  
nginx.pcre_conf.patch 572 bytes open | download Hiroaki Nakamura 01/09/2013 Read message
Maxim Dounin
January 09, 2013 11:26AM
Hello!

On Thu, Jan 10, 2013 at 12:48:38AM +0900, Hiroaki Nakamura wrote:

> Hi, there.
>
> Here is a patch for using pcre-config to set ngx_feature_path and
> ngx_feature_libs.
> I need this since I would like to use pcre 8.32 built from source and
> installed in /opt/lib64/libpcre.so.1.
>
> Could you review this patch?
> Thanks
>
> --
> )Hiroaki Nakamura) hnakamur@gmail.com

> --- auto/lib/pcre/conf.orig 2012-03-28 01:44:52.000000000 +0900
> +++ auto/lib/pcre/conf 2013-01-09 16:55:48.375745628 +0900
> @@ -105,6 +105,17 @@
>
> if [ $ngx_found = no ]; then
>
> + # pkgconfig
> +
> + ngx_feature="PCRE library in `pcre-config --prefix`/include"
> + ngx_feature_path="`pcre-config --prefix`/include"
> + ngx_feature_libs="`pcre-config --libs`"
> +
> + . auto/feature
> + fi
> +
> + if [ $ngx_found = no ]; then
> +
> # FreeBSD port
>
> ngx_feature="PCRE library in /usr/local/"

I don't think that "`pcre-config --prefix`/include" is a good
aproach.

Have you considered just using

../configure --with-cc-opt="-I/path/to/include" --with-ld-opt="-L/path/to/lib" ...

?

--
Maxim Dounin
http://nginx.com/support.html

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

[PATCH] Use pcre-config to set ngx_feature_path and ngx_feature_libs Attachments

Hiroaki Nakamura January 09, 2013 10:50AM

Re: [PATCH] Use pcre-config to set ngx_feature_path and ngx_feature_libs

Maxim Dounin January 09, 2013 11:26AM

Re: [PATCH] Use pcre-config to set ngx_feature_path and ngx_feature_libs

Hiroaki Nakamura January 09, 2013 11:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
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