From b3fcbca1e1cf12c41d02eb8474893bd576c71714 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 4 Nov 2015 17:39:27 +0100 Subject: gcc: better settings for uClibc-ng LT toolchains --- toolchain/gcc/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index bce5d7496..dc74d8cee 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -56,16 +56,15 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \ --without-isl \ --disable-nls -GCC_FINAL_CONFOPTS:= ifeq ($(ADK_TARGET_WITH_NPTL),y) -ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS),) -GCC_FINAL_CONFOPTS+= --enable-tls --enable-threads --enable-libatomic -else -GCC_FINAL_CONFOPTS+= --disable-tls --disable-threads --disable-libatomic +GCC_FINAL_CONFOPTS:= --enable-tls --enable-threads --enable-libatomic endif -else -GCC_FINAL_CONFOPTS+= --disable-tls --disable-threads --disable-libatomic +ifeq ($(ADK_TARGET_WITH_LT),y) +GCC_FINAL_CONFOPTS:= --disable-tls --enable-threads --disable-libatomic +endif +ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS),y) +GCC_FINAL_CONFOPTS:= --disable-tls --disable-threads --disable-libatomic endif ifeq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS),y) -- cgit v1.2.3