summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 1c95a2f93..46c272c96 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -21,7 +21,6 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
--disable-__cxa_atexit \
--with-gnu-ld \
--with-gnu-as \
- --enable-tls \
--disable-libsanitizer \
--disable-install-libiberty \
--disable-libitm \
@@ -39,6 +38,12 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
GCC_FINAL_CONFOPTS:=
+ifneq ($(ADK_TARGET_WITH_NPTL),)
+GCC_CONFOPTS+= --enable-tls --enable-threads --enable-libatomic
+else
+GCC_CONFOPTS+= --disable-tls --disable-threads --disable-libatomic
+endif
+
ifneq ($(ADK_LINUX_XTENSA),y)
GCC_FINAL_CONFOPTS+= --enable-cxx-flags='$(TARGET_CXXFLAGS)'
endif