2009-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
[moon.git] / cairo / src / check-plt.sh
blobc7a12d3b6236aa6db4c7b35c930050b141dabbe3
1 #!/bin/sh
3 LANG=C
5 if which readelf 2>/dev/null >/dev/null; then
7 else
8 echo "'readelf' not found; skipping test"
9 exit 0
12 test -z "$srcdir" && srcdir=.
13 test -z "$MAKE" && MAKE=make
14 stat=0
16 $MAKE check-has-hidden-symbols.i > /dev/null || exit 1
17 if tail -1 check-has-hidden-symbols.i | grep CAIRO_HAS_HIDDEN_SYMBOLS >/dev/null; then
18 echo "Compiler doesn't support symbol visibility; skipping test"
19 exit 0
22 for so in .libs/lib*.so; do
23 echo Checking "$so" for local PLT entries
24 readelf -W -r "$so" | grep 'JU\?MP_SLO' | grep 'cairo' >&2 && stat=1
25 done
27 exit $stat