X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fchunkeey.git;a=blobdiff_plain;f=toolchain%2Fgcc%2Ffinal%2FMakefile;fp=toolchain%2Fgcc%2Ffinal%2FMakefile;h=01fec380273752d01c10046f476f785ec34b92aa;hp=3434d894a2b501ba9545c99d47066fc43a7b5480;hb=360fd10ac9cb92425709c76ded0cd418662e121e;hpb=1645abffea2785653de27d92ba0e977d1f32a538 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