diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-10-30 15:27:49 +0000 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-10-31 17:59:24 +0000 |
commit | 4e43ba5687b840f9c2a42375f6a434d7829fd762 (patch) | |
tree | 60df31a38083ab8672e0ee7b70b0ad9a1f74a928 /src/egl | |
parent | 0529a63384a50fcaad837186f6591b6a7f26127a (diff) |
wayland-egl: fail symbol check if lib is missing
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/egl')
-rwxr-xr-x | src/egl/wayland/wayland-egl/wayland-egl-symbols-check | 10 |
1 files changed, 9 insertions, 1 deletions
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 ) <<EOF wl_egl_window_resize wl_egl_window_create |