From: Eric Engestrom Date: Mon, 30 Oct 2017 15:27:10 +0000 (+0000) Subject: egl: fail symbol check if lib is missing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0529a63384a50fcaad837186f6591b6a7f26127a;p=mesa.git egl: fail symbol check if lib is missing Signed-off-by: Eric Engestrom Reviewed-by: Dylan Baker Reviewed-by: Emil Velikov --- diff --git a/src/egl/egl-symbols-check b/src/egl/egl-symbols-check index 4c5232cb6c0..ae867d04bca 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 ) <