diff --git a/include/kernel.mk b/include/kernel.mk index 1f510496620..146346a4753 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -121,6 +121,10 @@ ifneq (,$(KERNEL_CC)) KERNEL_MAKE_FLAGS += CC="$(KERNEL_CC)" endif +ifeq ($(HOST_OS),Darwin) + KERNEL_MAKE_FLAGS += MACOSX_DEPLOYMENT_TARGET="$(shell sw_vers -productVersion)" +endif + KERNEL_NOSTDINC_FLAGS = \ -nostdinc $(if $(DUMP),, -isystem $(shell $(TARGET_CC) -print-file-name=include))