gcc: optionally build gccgo compiler

Tested with eglibc on x86 and armv7 so far

Signed-off-by: Matteo Croce <matteo.croce@canonical.com>
This commit is contained in:
Matteo Croce
2016-07-15 12:17:20 +02:00
committed by Felix Fietkau
parent 1645abffea
commit 360fd10ac9
5 changed files with 49 additions and 2 deletions

View File

@@ -39,7 +39,16 @@ define Host/Configure
);
endef
ifeq ($(CONFIG_USE_GLIBC)$(CONFIG_INSTALL_GCCGO),yy)
define FixGogccCrt
# link crtX.o for gotools
mkdir -p $(GCC_BUILD_DIR)/gotools
$(foreach crt, i 1 n, ln -sf ../../glibc-dev/lib/crt$(crt).o $(GCC_BUILD_DIR)/gotools/ ; )
endef
endif
define Host/Compile
$(FixGogccCrt)
+$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) all
endef