summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-11-04 17:39:27 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-11-04 17:39:59 +0100
commitb3fcbca1e1cf12c41d02eb8474893bd576c71714 (patch)
tree17f3de242f4b22ec02811e6d41db856bd04c3e59 /toolchain/gcc/Makefile
parent5f832336bfa23078447dfa1b61cc7ad82fdab8fc (diff)
gcc: better settings for uClibc-ng LT toolchains
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile13
1 files 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)