From 4b8b89da506d1272ccbf944b1ece6c8ddaeff2ed Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Tue, 31 Jan 2023 12:04:00 +0100 Subject: [PATCH] toolchain/gcc: use explicit configure args Spell out what we want to enable or disable. This prevents host libs to leak in, so everyone get the same feature set. Signed-off-by: Andre Heider --- toolchain/gcc/common.mk | 2 ++ toolchain/gcc/final/Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 7eae855eea4..5f314c7fc0b 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -106,6 +106,8 @@ GCC_CONFIGURE:= \ --with-abi=$(call qstrip,$(CONFIG_MIPS64_ABI))) \ $(if $(CONFIG_arc),--with-cpu=$(CONFIG_CPU_TYPE)) \ $(if $(CONFIG_powerpc64), $(if $(CONFIG_USE_MUSL),--with-abi=elfv2)) \ + --with-system-zlib=$(STAGING_DIR_HOST) \ + --without-zstd \ --with-gmp=$(STAGING_DIR_HOST) \ --with-mpfr=$(STAGING_DIR_HOST) \ --with-mpc=$(STAGING_DIR_HOST) \ diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile index 049ddf61f03..78a5576bffb 100644 --- a/toolchain/gcc/final/Makefile +++ b/toolchain/gcc/final/Makefile @@ -8,6 +8,7 @@ GCC_CONFIGURE += \ --enable-shared \ --enable-threads \ --with-slibdir=$(TOOLCHAIN_DIR)/lib \ + --enable-plugins \ --enable-lto \ --with-libelf=$(STAGING_DIR_HOST) -- 2.30.2