summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-03-05 10:42:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-03-05 19:35:22 +0100
commit91c96ee1dd60781fb6990c5378e48d8e0aef1c18 (patch)
tree19fead4198f43fe1dcea788801af47aa71d1e173 /toolchain/gcc
parent01cd87aa87d783c1a1ea00a6b1e56d3a07d45f96 (diff)
support non-thread build
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index b27497e87..664f45c70 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -53,11 +53,13 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
GCC_FINAL_CONFOPTS:=
-ifneq ($(ADK_TARGET_WITH_NPTL),)
+ifeq ($(ADK_TARGET_WITH_NPTL),y)
+ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS),)
GCC_CONFOPTS+= --enable-tls --enable-threads --enable-libatomic
else
GCC_CONFOPTS+= --disable-tls --disable-threads --disable-libatomic
endif
+endif
ifeq ($(ADK_TARGET_UCLINUX)$(ADK_TARGET_USE_STATIC_LIBS),y)
GCC_FINAL_CONFOPTS+= --disable-shared