Blame src/check-libstdc++.sh

Packit 874993
#!/bin/sh
Packit 874993
Packit 874993
LC_ALL=C
Packit 874993
export LC_ALL
Packit 874993
Packit 874993
test -z "$srcdir" && srcdir=.
Packit 874993
stat=0
Packit 874993
Packit 874993
Packit 874993
if which ldd 2>/dev/null >/dev/null; then
Packit 874993
	:
Packit 874993
else
Packit 874993
	echo "check-libstdc++.sh: 'ldd' not found; skipping test"
Packit 874993
	exit 77
Packit 874993
fi
Packit 874993
Packit 874993
tested=false
Packit 874993
for suffix in so dylib; do
Packit 874993
	so=.libs/libharfbuzz.$suffix
Packit 874993
	if ! test -f "$so"; then continue; fi
Packit 874993
Packit 874993
	echo "Checking that we are not linking to libstdc++ or libc++"
Packit 874993
	if ldd $so | grep 'libstdc[+][+]\|libc[+][+]'; then
Packit 874993
		echo "Ouch, linked to libstdc++ or libc++"
Packit 874993
		stat=1
Packit 874993
	fi
Packit 874993
	tested=true
Packit 874993
done
Packit 874993
if ! $tested; then
Packit 874993
	echo "check-libstdc++.sh: libharfbuzz shared library not found; skipping test"
Packit 874993
	exit 77
Packit 874993
fi
Packit 874993
Packit 874993
exit $stat