unset LD_LIBRARY_PATH
./configure \
--enable-shared --disable-static \
--enable-apache2-module \
--with-apxs=/usr/local/apache24x/bin/apxs \
--with-apr=/usr/local/apache24x/bin/apr-2-config \
--with-apu=/usr/local/apache24x/bin/apr-2-config \
--with-pcre=/usr/local \
--enable-pcre-study \
--disable-pcre-match-limit \
--disable-pcre-match-limit-recursion \
--disable-docs \
--enable-strict-compile=yes \
--enable-errors \
--disable-verbose-output \
--with-lua=/usr/local
make
make install
ldd /usr/local/apache24x/modules/mod_security2.so* | grep pcre
libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007fb956ec2000)
export LD_LIBRARY_PATH="/usr/local/lib64:/usr/lib64"
ldd /usr/local/apache24x/modules/mod_security2.so* | grep pcre
libpcre.so.1 => /usr/local/lib64/libpcre.so.1
(0x00007ffb1a696000)
So a runtime-environment solution works ... but does not solve the
compile time issue for distribution.
I've tried setting LD_RUN_PATH, adding "-Wl,-rpath ..." as well as "-R
..." to LDFLAGS. So far nothing succeeds at embedding the
/usr/local/lib64 as a binary supplemental path into the modsec shared
library.
|