From: Eric Engestrom Date: Mon, 30 Oct 2017 15:27:49 +0000 (+0000) Subject: wayland-egl: fail symbol check if lib is missing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e43ba5687b840f9c2a42375f6a434d7829fd762;p=mesa.git wayland-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/wayland/wayland-egl/wayland-egl-symbols-check b/src/egl/wayland/wayland-egl/wayland-egl-symbols-check index e7105ea5793..04b2dbf1d37 100755 --- a/src/egl/wayland/wayland-egl/wayland-egl-symbols-check +++ b/src/egl/wayland/wayland-egl/wayland-egl-symbols-check @@ -1,6 +1,14 @@ #!/bin/sh +set -eu -FUNCS=$(nm -D --defined-only ${1-.libs/libwayland-egl.so} | grep -o "T .*" | cut -c 3- | while read func; do +LIB=${1-.libs/libwayland-egl.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 ) <