Skip to content

Commit 20848cd

Browse files
committed
also look at RUNPATH when setting LD_LIBRARY_PATH
1 parent 802153d commit 20848cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/examples/start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export RT_BIN="${RT_BINDIR}rtorrent"
4545

4646
if which objdump >/dev/null; then
4747
RUNPATH=$(objdump -x "$RT_BIN" | grep RPATH | sed -re 's/ *RPATH *//')
48+
test -n "$RUNPATH" || RUNPATH=$(objdump -x "$RT_BIN" | grep RUNPATH | sed -re 's/ *RUNPATH *//')
4849
test -z "$RUNPATH" || LD_LIBRARY_PATH="$RUNPATH${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
4950
fi
5051

0 commit comments

Comments
 (0)