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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rwxr-xr-x

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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