summaryrefslogtreecommitdiff
path: root/mk/kernel-vars.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/kernel-vars.mk')
-rw-r--r--mk/kernel-vars.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/kernel-vars.mk b/mk/kernel-vars.mk
index 17a8d23a2..834af71cc 100644
--- a/mk/kernel-vars.mk
+++ b/mk/kernel-vars.mk
@@ -11,8 +11,9 @@ KERNEL_MAKE_OPTS:= V=1 \
CONFIG_SHELL='${SHELL}'
# regex for relocs needs pcre on Darwin
-ifeq ($(ADK_HOST_DARWIN),y)
+ifeq (${OStype},Darwin)
KERNEL_MAKE_OPTS+= HOSTCFLAGS='$(HOST_CPPFLAGS) ${HOST_CFLAGS}' HOSTLDFLAGS='-lpcreposix'
+KERNEL_MAKE_OPTS+= HOST_EXTRACFLAGS='-I ${ADK_TOPDIR}/adk/include -DKBUILD_NO_NLS'
else
KERNEL_MAKE_OPTS+= HOSTCFLAGS='${HOST_CFLAGS}'
endif