summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/toolchain/gcc/gcc.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/toolchain/gcc/gcc.mk b/core/toolchain/gcc/gcc.mk
index 98cc466..c45fb70 100644
--- a/core/toolchain/gcc/gcc.mk
+++ b/core/toolchain/gcc/gcc.mk
@@ -101,6 +101,10 @@ GCC3_KCONFIGS_NAME := GCC
pembtk_gcc3_extraopts-y := --disable-symvers
pembtk_gcc3_extraopts-$(CONFIG_EMBTK_GCC_LANGUAGE_JAVA) += --enable-java-home
pembtk_gcc3_extraopts-$(CONFIG_KEMBTK_UCLIBC_LINUXTHREADS_OLD) += --disable-tls
+# FIXME: remove this when c++ exceptions will be fixed (in musl,libgcc?)
+ifeq ($(CONFIG_EMBTK_CLIB_MUSL)$(CONFIG_EMBTK_ARCH_MIPS),yy)
+pembtk_gcc3_extraopts-y += --disable-tls
+endif
GCC3_CONFIGURE_EXTRA_OPTIONS += $(pembtk_gcc3_extraopts-y)