X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=inline;f=toolchain%2Fgcc%2Ffinal%2FMakefile;h=01fec380273752d01c10046f476f785ec34b92aa;hb=0d9f922230aa02821c538a87c1d10584cff6c61c;hp=3529616fd54ef0f751aaa307d4b29d7095495e4b;hpb=c4fb88720eec0cbfd6ac2106e6c25ad35827000a;p=lede-git%2F.git diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile index 3529616fd5..01fec38027 100644 --- a/toolchain/gcc/final/Makefile +++ b/toolchain/gcc/final/Makefile @@ -4,15 +4,16 @@ include ../common.mk GCC_CONFIGURE += \ --with-headers=$(TOOLCHAIN_DIR)/include \ + --disable-libsanitizer \ --enable-languages=$(TARGET_LANGUAGES) \ --enable-shared \ --enable-threads \ - --with-slibdir=$(TOOLCHAIN_DIR)/lib - -ifneq ($(CONFIG_GCC_VERSION_4_5)$(CONFIG_GCC_VERSION_4_6),) - GCC_CONFIGURE += \ + --with-slibdir=$(TOOLCHAIN_DIR)/lib \ --enable-lto \ --with-libelf=$(TOPDIR)/staging_dir/host + +ifdef CONFIG_USE_MUSL + GCC_MAKE += gcc_cv_libc_provides_ssp=yes endif ifneq ($(CONFIG_SJLJ_EXCEPTIONS),) @@ -38,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