From 424c479e1ac1edc01d066a3b5ce10d45febf57bc Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 29 Nov 2011 13:32:37 +0200 Subject: Don't bother with -D_PTHREADS -D_REENTRANT for Android --- solenv/inc/unxandr.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/solenv/inc/unxandr.mk b/solenv/inc/unxandr.mk index 9d172dffe767..e8cbd9e796ff 100644 --- a/solenv/inc/unxandr.mk +++ b/solenv/inc/unxandr.mk @@ -34,6 +34,11 @@ CFLAGS+=-fno-omit-frame-pointer # Override some macros set by unxgcc.mk +# _PTHREADS and _REENTRANT are meaningful in glibc headers only, and +# in the NDK in stlport, which we don't use. +CDEFS !:= $(subst,-D_PTHREADS, $(CDEFS)) +CDEFS !:= $(subst,-D_REENTRANT, $(CDEFS)) + # We don't build any "tool" style programs for non-desktop OSes like # Android. Just unit tests and GUI programs. (Well, that is in # theory. In reality any actual "app" with a GUI for Android would be -- cgit