···10 #
11 # This could alternatively be fixed with patchelf --add-needed, but this would cause all the libraries to be opened immediately,
12 # which is not what application authors expect.
13- echo "$runtimeDependencyLibraryPath"
14- if [[ ! -z "$runtimeDependencyLibraryPath" ]]; then
15- wrapProgramArgs+=(--suffix LD_LIBRARY_PATH : \"$runtimeDependencyLibraryPath\")
00016 fi
1718 if [[ ! -z "$extraWrapProgramArgs" ]]; then
···10 #
11 # This could alternatively be fixed with patchelf --add-needed, but this would cause all the libraries to be opened immediately,
12 # which is not what application authors expect.
13+ APPLICATION_LD_LIBRARY_PATH=""
14+ for runtimeDependency in "${runtimeDependencies[@]}"; do
15+ addToSearchPath APPLICATION_LD_LIBRARY_PATH "${runtimeDependency}/lib"
16+ done
17+ if [[ ! -z "$APPLICATION_LD_LIBRARY_PATH" ]]; then
18+ wrapProgramArgs+=(--suffix LD_LIBRARY_PATH : \"$APPLICATION_LD_LIBRARY_PATH\")
19 fi
2021 if [[ ! -z "$extraWrapProgramArgs" ]]; then