addOpenGLRunpath: only apply to ELF files
Fixes libglvnd build
This commit is contained in:
@@ -21,6 +21,7 @@ addOpenGLRunpath() {
|
||||
done
|
||||
|
||||
for file in "$@"; do
|
||||
if ! isELF "$file"; then continue; fi
|
||||
local origRpath="$(patchelf --print-rpath "$file")"
|
||||
patchelf --set-rpath "@driverLink@/lib:$origRpath" ${forceRpath:+--force-rpath} "$file"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user