Skip to content

Commit

Permalink
addOpenGLRunpath: only apply to ELF files
Browse files Browse the repository at this point in the history
Fixes libglvnd build
  • Loading branch information
veprbl committed May 23, 2019
1 parent e57bb43 commit 44b551c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/build-support/add-opengl-runpath/setup-hook.sh
Expand Up @@ -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
Expand Down

0 comments on commit 44b551c

Please sign in to comment.