From 57c57df7b4579b60a84062df2e64f84dd84558b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Thu, 16 Aug 2012 13:59:12 +0300 Subject: mesa/dlopen: use HAVE_DLOPEN instead of _GNU_SOURCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patches changes mesa to use 'HAVE_DLOPEN' defined by configure and Android.mk instead of _GNU_SOURCE for detecting dlopen capability. This makes dlopen to work also on Android where _GNU_SOURCE is not defined. [mattst88] v2: HAVE_DLOPEN is sufficient for including dlfcn.h, remove mingw/blrts checks around dlfcn.h inclusion. Reviewed-by: Brian Paul Reviewed-by: Matt Turner Signed-off-by: Tapani Pälli --- Android.common.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Android.common.mk') diff --git a/Android.common.mk b/Android.common.mk index e8b9006..1e9f040 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -47,7 +47,9 @@ LOCAL_CFLAGS += \ ifeq ($(strip $(MESA_ENABLE_ASM)),true) ifeq ($(TARGET_ARCH),x86) LOCAL_CFLAGS += \ - -DUSE_X86_ASM + -DUSE_X86_ASM \ + -DHAVE_DLOPEN \ + endif endif -- cgit v1.1