summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index aefc945a8..1857cf0cb 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -56,6 +56,8 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
--disable-werror \
--disable-nls
+ifeq ($(ADK_TARGET_OS_LINUX),y)
+ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
ifeq ($(ADK_TARGET_WITH_NPTL),y)
GCC_FINAL_CONFOPTS:= --enable-tls --enable-threads --enable-libatomic
GCC_TLS_CONFOPTS:= --enable-tls
@@ -68,6 +70,15 @@ ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS)$(ADK_TARGET_WITHOUT_THREADS),y)
GCC_FINAL_CONFOPTS:= --disable-tls --disable-threads --disable-libatomic
GCC_TLS_CONFOPTS:= --disable-tls
endif
+else
+GCC_FINAL_CONFOPTS:= --enable-tls --enable-threads --enable-libatomic
+GCC_TLS_CONFOPTS:= --enable-tls
+endif
+endif
+
+ifeq ($(ADK_TARGET_OS_RTEMS),y)
+GCC_FINAL_CONFOPTS:= --enable-libatomic
+endif
ifeq ($(ADK_TARGET_LIB_NEWLIB),y)
GCC_FINAL_CONFOPTS+= --with-newlib