summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-11 14:29:13 -0800
committerEric Anholt <eric@anholt.net>2013-12-11 14:35:46 -0800
commit22ce76fe0bcb8cf78ce212cdeb1c6ed69553db1e (patch)
treed6326df70212cac435a633b3ef77d3e6c3ca7e0e /test
parent2206e6e3021da18231f27698583b994369c9e566 (diff)
downloadlibepoxy-22ce76fe0bcb8cf78ce212cdeb1c6ed69553db1e.tar.gz
Make glx_static report skip if it was built non-static.
It won't have that symbol, unless it happens to be linked against the full library.
Diffstat (limited to 'test')
-rw-r--r--test/glx_static.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/glx_static.c b/test/glx_static.c
index d351a4f..7a44f82 100644
--- a/test/glx_static.c
+++ b/test/glx_static.c
@@ -47,6 +47,11 @@ main(int argc, char **argv)
bool pass = true;
int val;
+ if (dlsym(NULL, "epoxy_glCompileShader")) {
+ fprintf(stderr, "glx_static requires epoxy built with --enable-static\n");
+ return 77;
+ }
+
Display *dpy = get_display_or_skip();
make_glx_context_current_or_skip(dpy);