addOpenGLRunpath: only apply to ELF files

Fixes libglvnd build
This commit is contained in:
Dmitry Kalinkin 2019-05-23 16:50:55 -04:00
parent e57bb4367d
commit 44b551c0c0
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -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