uci: macOS 12 host build support with GCC11 installed

This commit is contained in:
coolsnowwolf 2022-03-28 14:13:31 +08:00 committed by GitHub
parent 6d687a132e
commit 6b0eeff9d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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