From 6b0eeff9d94b38800d93d3a1b592a8aa20351ff6 Mon Sep 17 00:00:00 2001 From: coolsnowwolf <31687149+coolsnowwolf@users.noreply.github.com> Date: Mon, 28 Mar 2022 14:13:31 +0800 Subject: [PATCH] uci: macOS 12 host build support with GCC11 installed --- tools/ucl/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/ucl/Makefile b/tools/ucl/Makefile index 3ec8d7390..7b09f155b 100644 --- a/tools/ucl/Makefile +++ b/tools/ucl/Makefile @@ -17,7 +17,12 @@ HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION) include $(INCLUDE_DIR)/host-build.mk +ifeq ($(HOST_OS),Darwin) +HOSTCC :=gcc-11 +else HOSTCC :=gcc +endif + HOST_CFLAGS +=-std=gnu89 define Host/Prepare