From 360fd10ac9cb92425709c76ded0cd418662e121e Mon Sep 17 00:00:00 2001 From: Matteo Croce Date: Fri, 15 Jul 2016 12:17:20 +0200 Subject: gcc: optionally build gccgo compiler Tested with eglibc on x86 and armv7 so far Signed-off-by: Matteo Croce --- toolchain/gcc/final/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'toolchain/gcc/final') diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile index 3434d894a2..01fec38027 100644 --- a/toolchain/gcc/final/Makefile +++ b/toolchain/gcc/final/Makefile @@ -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 -- cgit v1.2.3