From 22ce76fe0bcb8cf78ce212cdeb1c6ed69553db1e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 11 Dec 2013 14:29:13 -0800 Subject: 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. --- test/glx_static.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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); -- cgit v1.2.1