From 91c96ee1dd60781fb6990c5378e48d8e0aef1c18 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 5 Mar 2015 10:42:39 +0100 Subject: support non-thread build --- toolchain/gcc/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'toolchain/gcc/Makefile') 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 -- cgit v1.2.3