From 5c4f73fa7f4b680977d5b1fcced28107cccc3a7e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 13 Dec 2013 13:01:22 -0800 Subject: [PATCH] Add a test showing a way that our ifuncs are broken. --- test/.gitignore | 1 + test/Makefile.am | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/test/.gitignore b/test/.gitignore index 436831f..b3e8334 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -4,6 +4,7 @@ glx_glxgetprocaddress_nocontext glx_has_extension_nocontext glx_public_api glx_public_api_core +glx_shared_znow glx_static headerguards miscdefines diff --git a/test/Makefile.am b/test/Makefile.am index 64b255d..43be8e5 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -73,6 +73,7 @@ GLX_TESTS = \ glx_glxgetprocaddress_nocontext \ glx_has_extension_nocontext \ glx_static \ + glx_shared_znow \ $() GLX_LIBS = libglx_common.la @@ -86,6 +87,8 @@ WGL_TESTS = \ WGL_LIBS = libwgl_common.la endif +XFAIL_TESTS = glx_shared_znow + egl_has_extension_nocontext_LDFLAGS = $(X11_LIBS) $(EPOXY) libegl_common.la egl_has_extension_nocontext_DEPENDENCIES = $(EPOXY) libegl_common.la @@ -107,5 +110,9 @@ glx_has_extension_nocontext_DEPENDENCIES = $(EPOXY) libglx_common.la glx_static_LDFLAGS = -ldl $(X11_LIBS) -static $(EPOXY) libglx_common.la glx_static_DEPENDENCIES = $(EPOXY) libglx_common.la +glx_shared_znow_SOURCES = glx_static.c +glx_shared_znow_LDFLAGS = -ldl $(X11_LIBS) -z now $(EPOXY) libglx_common.la +glx_shared_znow_DEPENDENCIES = $(EPOXY) libglx_common.la + wgl_core_and_exts_LDFLAGS = $(EPOXY) libwgl_common.la -lgdi32 wgl_core_and_exts_DEPENDENCIES = $(EPOXY) libwgl_common.la