summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/config/Config.in.toolchain6
-rw-r--r--toolchain/gcc/Makefile8
2 files changed, 11 insertions, 3 deletions
diff --git a/target/config/Config.in.toolchain b/target/config/Config.in.toolchain
index bae6f5ba7..cd37042f3 100644
--- a/target/config/Config.in.toolchain
+++ b/target/config/Config.in.toolchain
@@ -59,13 +59,17 @@ config ADK_TOOLCHAIN_WITH_CXX
default n
config ADK_TOOLCHAIN_WITH_OBJC
- bool "enable OBJC"
+ bool "enable Objective-C"
default n
config ADK_TOOLCHAIN_WITH_FORTRAN
bool "enable Fortran"
default n
+config ADK_TOOLCHAIN_WITH_GO
+ bool "enable Go"
+ default n
+
endmenu
menu "Advanced Toolchain options"
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 3dc9227b3..7477b3c8a 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -53,6 +53,7 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
--without-ppl \
--without-cloog \
--without-isl \
+ --disable-werror \
--disable-nls
ifeq ($(ADK_TARGET_LIB_NEWLIB),y)
@@ -199,6 +200,9 @@ endif
ifeq ($(ADK_TOOLCHAIN_WITH_FORTRAN),y)
USE_LANG+=fortran
endif
+ifeq ($(ADK_TOOLCHAIN_WITH_GO),y)
+USE_LANG+=go
+endif
LANGUAGES=$(shell echo ${USE_LANG} |tr ' ' ',')
@@ -284,8 +288,8 @@ $(WRKBUILD)/.compiled:
PATH='$(TARGET_PATH)' \
CC='$(HOST_CC)' \
CXX='$(HOST_CXX)' \
- CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
- CXXFLAGS_FOR_TARGET='$(TARGET_CXXFLAGS)' \
+ CFLAGS_FOR_TARGET='$(TARGET_CFLAGS) -lpthread' \
+ CXXFLAGS_FOR_TARGET='$(TARGET_CXXFLAGS) -lpthread' \
$(WRKBUILD)/configure \
${GCC_CONFOPTS} \
${GCC_FINAL_CONFOPTS} \