From 44b551c0c0555fb6814fdac202d417df98451fe2 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Thu, 23 May 2019 16:50:55 -0400 Subject: [PATCH] addOpenGLRunpath: only apply to ELF files Fixes libglvnd build --- pkgs/build-support/add-opengl-runpath/setup-hook.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/add-opengl-runpath/setup-hook.sh b/pkgs/build-support/add-opengl-runpath/setup-hook.sh index 7645033ca20..e556e7ead2a 100644 --- a/pkgs/build-support/add-opengl-runpath/setup-hook.sh +++ b/pkgs/build-support/add-opengl-runpath/setup-hook.sh @@ -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