summaryrefslogtreecommitdiff
path: root/test/glx_static.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-13 16:59:49 -0800
committerEric Anholt <eric@anholt.net>2013-12-13 17:00:56 -0800
commite58e98feee46d9862fcac985f3e5b91a3f770b61 (patch)
tree99928cbd79bde59765686e75ad561f3d9fa046b5 /test/glx_static.c
parent5c4f73fa7f4b680977d5b1fcced28107cccc3a7e (diff)
downloadlibepoxy-e58e98feee46d9862fcac985f3e5b91a3f770b61.tar.gz
Fix the behavior of glx_shared_znow if it doesn't die at startup.
We're sharing the source file with glx_static, but we don't want to SKIP due to not being statically linked.
Diffstat (limited to 'test/glx_static.c')
-rw-r--r--test/glx_static.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/glx_static.c b/test/glx_static.c
index 981435f..d528a60 100644
--- a/test/glx_static.c
+++ b/test/glx_static.c
@@ -48,10 +48,12 @@ main(int argc, char **argv)
bool pass = true;
int val;
+#if NEEDS_TO_BE_STATIC
if (dlsym(NULL, "epoxy_glCompileShader")) {
fprintf(stderr, "glx_static requires epoxy built with --enable-static\n");
return 77;
}
+#endif
Display *dpy = get_display_or_skip();
make_glx_context_current_or_skip(dpy);