harfbuzz/src/check-libstdc++.sh

35 lines
591 B
Bash
Raw Normal View History

2009-11-03 20:28:32 +01:00
#!/bin/sh
LC_ALL=C
export LC_ALL
2011-05-27 21:58:54 +02:00
test -z "$srcdir" && srcdir=.
stat=0
2009-11-03 20:28:32 +01:00
if which ldd 2>/dev/null >/dev/null; then
:
else
echo "check-libstdc++.sh: 'ldd' not found; skipping test"
exit 77
2009-11-03 20:28:32 +01:00
fi
2012-01-27 08:09:40 +01:00
tested=false
for suffix in so dylib; do
so=.libs/libharfbuzz.$suffix
if test -f "$so"; then
echo "Checking that we are not linking to libstdc++"
if ldd $so | grep 'libstdc[+][+]'; then
echo "Ouch, linked to libstdc++"
stat=1
fi
tested=true
2009-11-03 20:28:32 +01:00
fi
2012-01-27 08:09:40 +01:00
done
if ! $tested; then
echo "check-internal-symbols.sh: libharfbuzz shared library not found; skipping test"
exit 77
2009-11-03 20:28:32 +01:00
fi
exit $stat