From ad9bfd4243b290036771f68da4ddf384a7298588 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 28 Jun 2025 11:26:12 +0200 Subject: [PATCH] crossgcc: Always update HOSTCFLAGS from GMP headers if already built Change-Id: I332cdec6d56cf09b0380dbf43575ed2d5d45461a Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/88232 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- util/crossgcc/buildgcc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index c961947d9b..b76bcff693 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -512,6 +512,10 @@ generic_build() mkdir -p "$builddir" + if [ "$package" = "GMP" ] && [ -f "$DESTDIR$TARGETDIR/include/gmp.h" ]; then + set_hostcflags_from_gmp + fi + if [ -f "$success" ]; then printf "Skipping $package v$version for $host_target as it is already built\n" else