diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-01-11 16:16:20 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-01-11 16:16:20 +0000 |
commit | 6d3ed950ea075ff2a5a569365b46c3cfc4152787 (patch) | |
tree | a7ffa60f2ce695147a908bf0368a31a81e921a3d /src/check-def.sh | |
parent | be146f02e0e220aa70217bf348beef301a56f898 (diff) |
[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-def.sh')
-rwxr-xr-x | src/check-def.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/check-def.sh b/src/check-def.sh index 58408efa..a2e736a3 100755 --- a/src/check-def.sh +++ b/src/check-def.sh @@ -2,6 +2,11 @@ LANG=C +if ! ./compiler-supports-visibility; then + echo "Compiler doesn't support symbol visibility; skipping test" + exit 0 +fi + if ! which nm 2>/dev/null >/dev/null; then echo "'nm' not found; skipping test" exit 0 |