add posibility to activate pcre when cross-compiling
The support for pcre is deactivated when lighttpd is cross compiled. But it should work in that case, too.
I attached a patch for configure.in
When someone whould like to use ptxdist to build a root filesystem, the file configure must be patched (also attached).
Allow using pcre with cross-compiling (pcre-config got fixed; fixes #1986)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2511 152afb58-edef-0310-8abb-c4023f1b3aa9
#3 Updated by maggu2810 almost 7 years ago
I guess there was a reason why this was disabled
Yes, that is plausible! ;-)
did you test cross-compiling for pcre works at least for you?
Yes, first I have built a rootfs with gentoos crossdev tools. After I have created the patch and applied it, lighttpd works with pcre.
Now I prepared ptxdist and also here the patch is working.
I found a comment in ptxdist patchset (they have a patch for 1.4.20):
"lighttpd thinks that pcre-config cannot be used when cross-compiling,
but lfu fixed pcre-config up, so that we can use it."
#5 Updated by lightning almost 6 years ago
I'm not sure that this fix is fixing all cases. I have crosstools-ng toolchain and configure is incapable of finding the correct pcre-config or libpcre.
tested with pcre 7.9 and 8.0.2 , same result.
configure thinks it's found it but always takes the build systems pcre not the target one. I removed the build pcre-config to catch the error earlier. If not make then fails with incompatible files having gone to the wrong place.
... skipping incompatible /lib/libpcre.so.0 when searching for /lib/libpcre.so.0
CFLAGS="$CFLAGS -I$NFSROOT/usr/include " ./configure --prefix=/usr --host=arm-maverick-linux-gnueabi LDFLAGS="-L$NFSROOT/usr/lib -L$NFSROOT/lib" --disable-lfs --with-gnu-ld --disable-ipv6 --without-bzip2
neither does PCRECONFIG=$NFSROOT/usr/lib or PCRECONFIG=$NFSROOT/usr/bin fix it.
Since this issue is supposed to be fixed, maybe I've just wasted two days searching and not managed to find the right incantation.
If that is the case please make it available somewhere since standard use of configure simply isnot enought.
Also available in: Atom