[PATCH] Fix PCRE detection on OSX.

Piotr Sikora piotr at cloudflare.com
Fri Dec 7 22:52:49 UTC 2012


Hey Ruslan,

> OS X is known to be broken in that respect.

Yes, it is, which makes this a known problem with an easy fix.

> That's why MacPorts
> installs stuff into /opt/local by default, instead of /usr/local.
>
> https://trac.macports.org/wiki/FAQ#defaultprefix
> https://trac.macports.org/wiki/FAQ#usrlocal

I know, I'm using MacPorts... But enough people was hit by this
problem that I've decided to "fix" it.

> But why should nginx care to "fix" this?
>
> I think
>     configure --with-cc-opt="-L/usr/local/lib -I/usr/local/include"
> should help survive with broken build tools even if you install
> your stuff into /usr/local.

Except that nginx's ./configure (called without additional options)
decides that it "found" PCRE and that it doesn't need any additional
arguments in order to compile properly.

Anyway, do you see anything wrong with this patch or is it simply
"it's not our problem" reasoning?

Best regards,
Piotr Sikora



More information about the nginx-devel mailing list