summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2011-10-31 19:54:01 +0100
committerAndreas Baumann <abaumann@yahoo.com>2011-10-31 19:54:01 +0100
commitd725022844380852476dbef00d7dc3c2e7a37fdb (patch)
tree7df0f711e45b5b7a737d82ef2fcdabf1d2d168fd /makefiles
parent780a04f1961d766f524386eb9c58574738fbfbb3 (diff)
downloadwolfbones-d725022844380852476dbef00d7dc3c2e7a37fdb.tar.gz
wolfbones-d725022844380852476dbef00d7dc3c2e7a37fdb.tar.bz2
added a HAVE_THREADS flag
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/gmake/compiler.mk4
-rw-r--r--makefiles/gmake/platform.mk12
2 files changed, 16 insertions, 0 deletions
diff --git a/makefiles/gmake/compiler.mk b/makefiles/gmake/compiler.mk
index 38342ce..15f2452 100644
--- a/makefiles/gmake/compiler.mk
+++ b/makefiles/gmake/compiler.mk
@@ -193,6 +193,8 @@ endif
# end of pcc section
+ifeq "$(ENABLE_THREADS)" "1"
+
# set flags for threading support using POSIX threads. This is completly different
# between compiler/platforms
ifeq "$(COMPILER)" "gcc"
@@ -252,6 +254,8 @@ PTHREADS_LIBS =
endif
endif
+endif
+
# set flags for position independend code (as required for shared libraries
# on some platforms)
ifeq "$(COMPILER)" "gcc"
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk
index 6f94216..d5fb525 100644
--- a/makefiles/gmake/platform.mk
+++ b/makefiles/gmake/platform.mk
@@ -100,6 +100,7 @@ LIBS_DL =
endif
endif
+
# i18n, gettext/libintl
#######################
@@ -219,3 +220,14 @@ LIBS_NET =
endif
PLATFORM_COMPILE_FLAGS += $(INCLUDE_FLAGS_NET)
+
+# threading support
+###################
+
+# enable or disable threading
+ENABLE_THREADS = 1
+
+ifeq "$(ENABLE_NLS)" "1"
+PLATFORM_COMPILE_FLAGS += \
+ -DENABLE_THREADS=$(ENABLE_THREADS)
+endif