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

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rwxr-xr-x

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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