opengl: Mimetype no longer detects shared libraries after pie issues

This commit is contained in:
Tyson Whitehead
2019-05-03 10:11:39 -04:00
parent 8be0a79790
commit eb3a39c3ec

View File

@@ -149,12 +149,7 @@ VGL_isTestAllS() {
#
VGL_isElfBin() {
declare file=$1
case "$(file -b -N --mime-type "$file")" in
application/x-executable | application/x-pie-executable)
return 0 ;;
*)
return 1 ;;
esac
patchelf --print-interpreter "$file" &>/dev/null
}
# Check for libGL