check-libstdc++.sh revision 134aa7bc7e3f9b9de76c9de2ed4b7344a7b323f9
1#!/bin/sh 2 3LC_ALL=C 4export LC_ALL 5 6test -z "$srcdir" && srcdir=. 7stat=0 8 9 10if which ldd 2>/dev/null >/dev/null; then 11 : 12else 13 echo "check-libstdc++.sh: 'ldd' not found; skipping test" 14 exit 77 15fi 16 17tested=false 18for suffix in so dylib; do 19 so=.libs/libharfbuzz.$suffix 20 if test -f "$so"; then 21 echo "Checking that we are not linking to libstdc++" 22 if ldd $so | grep 'libstdc[+][+]'; then 23 echo "Ouch, linked to libstdc++" 24 stat=1 25 fi 26 tested=true 27 fi 28done 29if ! $tested; then 30 echo "check-internal-symbols.sh: libharfbuzz shared library not found; skipping test" 31 exit 77 32fi 33 34exit $stat 35