summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-05-21 23:52:37 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-05-21 23:52:37 +0200
commitb26d9839c9fd358d75ef8072931b3250cbe730ed (patch)
tree88956718e8271e6e767b990ce9cd408c0ac02ff5
parent19bb348661547e7799e8faf41b5ee458ca42e4c6 (diff)
fix kernel compile on Darwin
-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