I'm using xml2-config as so in a configure.in:
LIBXML2_CFLAGS="`$XML2_CONFIG --cflags`"
LIBXML2_LIB="`$XML2_CONFIG --libs`"
they then get used in Makefile.am in AM_CPPFLAGS and LIBADD
On one machine I have libxml2 installed locally, so the call to
xml2-config shows:
>xml2-config --libs
-L/home/csc/local/lib -lxml2 -L/lib -lm
But the program will build, but won't run:
>ldd src/swish-e
libxml2.so.2 => not found
libm.so.5 => /lib/libm.so.5 (0x11b000)
libc.so.5 => /lib/libc.so.5 (0x123000)
This causes questions to the support list -- seems to build fine then
make check fails.
The fix is
LD_RUN_PATH=/home/csc/local/lib make
but is there a way to avoid that? Seems like I've got the path provided
by xml2-config from -L to use, so why not make it easy on the user and
set that automatically.
--
Bill Moseley
[EMAIL PROTECTED]