mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
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:
parent
43db03909b
commit
fa7cd96b6e
2 changed files with 9 additions and 2 deletions
|
|
@ -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 "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue