From 8ece85d22005339e63ae5b7c0153cfdb0dfc1243 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Thu, 24 Oct 2024 20:46:34 -0300 Subject: [PATCH] configure: let CC default to gcc-x86 on Haiku 32 bits. Fixes #18935. Change-Id: I05807d0f38e38b7abaad770fc390d38cbc76f8a5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8503 Haiku-Format: Haiku-format Bot Tested-by: Commit checker robot Reviewed-by: waddlesplash --- configure | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 6e7bee844a..4ef0db9a9d 100755 --- a/configure +++ b/configure @@ -603,9 +603,13 @@ if [ -z "$CC" ]; then CC=gcc fi if [ $(is_legacy_gcc $($CC -dumpversion)) -ne 0 ]; then - echo The host tools cannot be built with a legacy version of GCC. - echo Please specify a more modern compiler in the "CC" environ. - exit 1 + if [ $platform == "Haiku" ] && [ $platformMachine == "BePC" ]; then + CC=gcc-x86 + else + echo The host tools cannot be built with a legacy version of GCC. + echo Please specify a more modern compiler in the "CC" environ. + exit 1 + fi fi # detect the build platform