summaryrefslogtreecommitdiff
path: root/src/check-plt.sh
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-01-11 16:16:20 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-01-11 16:16:20 +0000
commit6d3ed950ea075ff2a5a569365b46c3cfc4152787 (patch)
treea7ffa60f2ce695147a908bf0368a31a81e921a3d /src/check-plt.sh
parentbe146f02e0e220aa70217bf348beef301a56f898 (diff)
downloadcairo-6d3ed950ea075ff2a5a569365b46c3cfc4152787.tar.gz
[check] Skip def/plt tests if the compiler doesn't support symbol hiding.
Compile a trivial program such that it reports whether cairo is hiding its internal symbols and skip the tests that depend upon it. This prevents false errors, such as bug 12726, where the user is presented with a scary make check failure.
Diffstat (limited to 'src/check-plt.sh')
-rwxr-xr-xsrc/check-plt.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/check-plt.sh b/src/check-plt.sh
index 887370c6a..05cde35f1 100755
--- a/src/check-plt.sh
+++ b/src/check-plt.sh
@@ -4,6 +4,11 @@ LANG=C
status=0
+if ! ./compiler-supports-visibility; then
+ echo "Compiler doesn't support symbol visibility; skipping test"
+ exit 0
+fi
+
if ! which readelf 2>/dev/null >/dev/null; then
echo "'readelf' not found; skipping test"
exit 0