Module: Mesa
Branch: master
Commit: 0529a63384a50fcaad837186f6591b6a7f26127a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0529a63384a50fcaad837186f6591b6a7f26127a

Author: Eric Engestrom <[email protected]>
Date:   Mon Oct 30 15:27:10 2017 +0000

egl: fail symbol check if lib is missing

Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>

---

 src/egl/egl-symbols-check | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/egl/egl-symbols-check b/src/egl/egl-symbols-check
index 4c5232cb6c..ae867d04bc 100755
--- a/src/egl/egl-symbols-check
+++ b/src/egl/egl-symbols-check
@@ -1,6 +1,14 @@
 #!/bin/sh
+set -eu
 
-FUNCS=$(nm -D --defined-only ${1-.libs/libEGL.so} | grep -o "T .*" | cut -c 3- 
| while read func; do
+LIB=${1-.libs/libEGL.so}
+
+if ! [ -f "$LIB" ]
+then
+  exit 1
+fi
+
+FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read 
func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 eglBindAPI
 eglBindTexImage

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to