opengl: Don't wrap shared libraries or anything already wrapped

Some QT libraries are also executables. Wrapping them breaks
linking against the library.
This commit is contained in:
Tyson Whitehead
2021-01-20 19:36:20 -05:00
parent 12593a159a
commit ea5b0088cb

View File

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