From: Eric Engestrom Date: Mon, 30 Oct 2017 15:27:25 +0000 (+0000) Subject: gbm: fail symbol check if lib is missing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d830351bfa454a560aa0566a9d22aff910bcf456;p=mesa.git gbm: fail symbol check if lib is missing Signed-off-by: Eric Engestrom Reviewed-by: Dylan Baker Reviewed-by: Emil Velikov --- diff --git a/src/gbm/gbm-symbols-check b/src/gbm/gbm-symbols-check index 2444131e990..cf57a08d572 100755 --- a/src/gbm/gbm-symbols-check +++ b/src/gbm/gbm-symbols-check @@ -1,6 +1,15 @@ #!/bin/sh +set -eu -FUNCS=$(nm -D --defined-only ${1-.libs/libgbm.so} | grep -o "T .*" | cut -c 3- | while read func; do +LIB=${1-.libs/libgbm.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 ) <