pipewire-jack: Disable LD_LIBRARY_PATH when libjack is in libdir

This avoids prepending /usr/lib to the LD_LIBRARY_PATH, which supersedes
DT_RUNPATH and can cause library confusion.
This commit is contained in:
Jan Alexander Steffens (heftig) 2023-08-03 20:53:49 +02:00 committed by Wim Taymans
parent 43db03909b
commit fa7cd96b6e
2 changed files with 9 additions and 2 deletions

View file

@ -54,7 +54,7 @@ if [ -n "$PERIOD" ]; then
fi
# shellcheck disable=SC2016 # ${LIB} is interpreted by ld.so, not the shell
LD_LIBRARY_PATH='@LIBJACK_PATH@'"${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}"
export LD_LIBRARY_PATH
@LIBJACK_PATH_ENABLE@LD_LIBRARY_PATH='@LIBJACK_PATH@'"${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}"
@LIBJACK_PATH_ENABLE@export LD_LIBRARY_PATH
exec "$@"