gfx/harfbuzz/src/check-libstdc++.sh

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rwxr-xr-x

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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

mercurial