]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: improve the makefile's support for libpcre
authorWilly Tarreau <w@1wt.eu>
Wed, 13 Feb 2013 11:39:06 +0000 (12:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Feb 2013 11:49:47 +0000 (12:49 +0100)
commit39793095d7e19031504ed75aebfbb500680baaf7
tree821b8f61b64d4659023cd4bc206069aca703b5b0
parentea3e73b9317a8c453b0e110504741550d81dc3a1
BUILD: improve the makefile's support for libpcre

Currently when cross-compiling, it's generally necessary to force
PCREDIR which the Makefile automatically appends /include and /lib to.
Unfortunately on most 64-bit linux distros, the lib path is instead
/lib64, which is really annoying to fix in the makefile.

So now we're computing PCRE_INC and PCRE_LIB from PCREDIR and using
these ones instead. If one wants to force paths individually, it is
possible to set them instead of setting PCREDIR. The old behaviour
of not passing anything to the compiler when PCREDIR is forced to blank
is conserved.
Makefile