Skip to content

Commit

Permalink
Merge pull request #61973 from NixOS/pr/fix_libglvnd
Browse files Browse the repository at this point in the history
addOpenGLRunpath: only apply to ELF files
  • Loading branch information
veprbl committed May 24, 2019
2 parents 8226346 + 44b551c commit 643a439
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 643a439

Please sign in to comment.