summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-30 19:53:15 +0200
committerAndreas Baumann <abaumann@yahoo.com>2009-03-30 19:53:15 +0200
commit26a6f8eea21737fd5e0a44e9f86498723a9c398e (patch)
treeb99138d97453379a9a86e1cacb089642988ad50e /makefiles
parent49c2dcffee7a975ae46b80c11fac0bacf396191d (diff)
downloadwolfbones-26a6f8eea21737fd5e0a44e9f86498723a9c398e.tar.gz
wolfbones-26a6f8eea21737fd5e0a44e9f86498723a9c398e.tar.bz2
fixed strerror_r/mutex and pthreads for Linux/tcc
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/gmake/compiler.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/makefiles/gmake/compiler.mk b/makefiles/gmake/compiler.mk
index e18e591..b44faac 100644
--- a/makefiles/gmake/compiler.mk
+++ b/makefiles/gmake/compiler.mk
@@ -159,7 +159,7 @@ endif
ifeq "$(COMPILER)" "tcc"
COMPILE_FLAGS = \
- -Wall -Werror -Wunsupported
+ -Wall -Werror
endif
# end of tcc section
@@ -245,6 +245,14 @@ PTHREADS_LIBS =
endif
endif
+ifeq "$(COMPILER)" "tcc"
+ifeq "$(PLATFORM)" "LINUX"
+PTHREADS_CFLAGS = -D_REENTRANT
+PTHREADS_LDFLAGS =
+PTHREADS_LIBS = -lpthread
+endif
+endif
+
CFLAGS = $(COMPILE_FLAGS) $(PLATFORM_COMPILE_FLAGS) $(INCLUDE_DIRS) $(PTHREADS_CFLAGS)
CCPPFLAGS = $(CCPP_COMPILE_FLAGS) $(PLATFORM_COMPILE_FLAGS) $(INCLUDE_DIRS) $(PTHREADS_CFLAGS)