Merge pull request #61973 from NixOS/pr/fix_libglvnd
addOpenGLRunpath: only apply to ELF files
This commit is contained in:
commit
643a439e86
@ -21,6 +21,7 @@ addOpenGLRunpath() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
for file in "$@"; do
|
for file in "$@"; do
|
||||||
|
if ! isELF "$file"; then continue; fi
|
||||||
local origRpath="$(patchelf --print-rpath "$file")"
|
local origRpath="$(patchelf --print-rpath "$file")"
|
||||||
patchelf --set-rpath "@driverLink@/lib:$origRpath" ${forceRpath:+--force-rpath} "$file"
|
patchelf --set-rpath "@driverLink@/lib:$origRpath" ${forceRpath:+--force-rpath} "$file"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user