On 7/12/20 2:48 PM, Bruno Haible wrote:
This test fails when I build this gnulib module in my usual way:
./configure --prefix=/PREFIX64 \
CPPFLAGS="-I/PREFIX64/include -Wall" \
LDFLAGS="-L/PREFIX64/lib"
I don't see why this should be expected to work. Instead, you can tell
'configure' to pass -rpath to the linker, so that the executable it produces
runs with the correct libraries. Something like this, say:
./configure --prefix=/PREFIX64 \
CPPFLAGS="-I/PREFIX64/include -Wall" \
LDFLAGS="-L/PREFIX64/lib -Wl,-rpath=/PREFIX64/lib"
This is a common issue when using dynamically-linked libraries in nonstandard
locations, and the longstanding way to address the issue is to use -rpath.
* modules/libgmp (Depends-on): Add havelib.
This approach requires all libgmp-using packages to also use havelib and do all
the libtool stuff. Emacs, coreutils etc. build without libtool and I would
rather not introduce a dependency on libtool to them.