From ea5b0088cb07db59191407211ad88f352fee0319 Mon Sep 17 00:00:00 2001 From: Tyson Whitehead Date: Wed, 20 Jan 2021 19:36:20 -0500 Subject: [PATCH] opengl: Don't wrap shared libraries or anything already wrapped Some QT libraries are also executables. Wrapping them breaks linking against the library. --- pkgs/opengl/insert-virtualgl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/opengl/insert-virtualgl.sh b/pkgs/opengl/insert-virtualgl.sh index b411c02..32237d6 100755 --- a/pkgs/opengl/insert-virtualgl.sh +++ b/pkgs/opengl/insert-virtualgl.sh @@ -247,7 +247,7 @@ VGL_autoAddVGL() { echo "Inserting VirtualGL into OpenGL executables in $prefix..." >&2 for output in $outputs; do VGL_findS "${!output}" -type f \ - | VGL_testKeepS 'VGL_isElfBin "$1"' \ + | VGL_testKeepS 'VGL_isElfBin "$1" && ! [[ "$1" == .*.vgl-* ]] && ! [[ "$1" == *.so* ]]' \ | VGL_testKeepS 'VGL_elfLibsResolvedS "$1" | VGL_isTestAnyS '"$(VGL_quote 'VGL_isLibGL "$1"')" \ | VGL_isTestAllS 'VGL_patch "$1"' done