We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f555906 commit 802153dCopy full SHA for 802153d
docs/examples/start.sh
@@ -42,4 +42,10 @@ if test -n "$RT_BINDIR"; then
42
fi
43
#RT_BINDIR="$HOME/src/rtorrent-ps/rtorrent-0.9.6/src/"
44
export RT_BIN="${RT_BINDIR}rtorrent"
45
+
46
+if which objdump >/dev/null; then
47
+ RUNPATH=$(objdump -x "$RT_BIN" | grep RPATH | sed -re 's/ *RPATH *//')
48
+ test -z "$RUNPATH" || LD_LIBRARY_PATH="$RUNPATH${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
49
+fi
50
51
"$RT_BIN" "${RT_OPTS[@]}"
0 commit comments