Running objdump -x on the resulting /home/user/workspace/sandbox/bin/rtorrent reveals that it has no defined RUNPATH variable. Accordingly, it is unable to dynamically link against /home/user/workspace/sandbox/lib/libtorrent.so.21 as required. A workaround is to export LD_LIBRARY_PATH=/home/user/workspace/sandbox/lib.
In contrast, when building the version of rtorrent immediately prior to #1102 , i.e. 52ceb39ca38a6, RUNPATH is set as expected:
I'm on Ubuntu 22.04. I'm building libtorrent master (53596afc5fae27) via the following procedure:
mkdir -p ~/sandbox
autoreconf -fi
./configure --prefix=/home/user/workspace/sandbox
make
make install
then building rtorrent master (1e400144828c9) against it via the following procedure:
export PKG_CONFIG_PATH=/home/user/workspace/sandbox/lib/pkgconfig
autoreconf -fi
./configure --prefix=/home/user/workspace/sandbox
make
make install
Running
objdump -x
on the resulting/home/user/workspace/sandbox/bin/rtorrent
reveals that it has no definedRUNPATH
variable. Accordingly, it is unable to dynamically link against/home/user/workspace/sandbox/lib/libtorrent.so.21
as required. A workaround is toexport LD_LIBRARY_PATH=/home/user/workspace/sandbox/lib
.In contrast, when building the version of rtorrent immediately prior to #1102 , i.e. 52ceb39ca38a6,
RUNPATH
is set as expected:so it seems like this was introduced by #1102.
Thanks very much for your time.