summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/kernel-vars.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/kernel-vars.mk b/mk/kernel-vars.mk
index 17227afed..c122a1ef1 100644
--- a/mk/kernel-vars.mk
+++ b/mk/kernel-vars.mk
@@ -12,13 +12,13 @@ KERNEL_MAKE_OPTS:= V=1 \
# regex for relocs needs pcre
ifeq ($(OS_FOR_BUILD),Darwin)
-KERNEL_MAKE_OPTS+= HOSTLDFLAGS='-lpcreposix'
+KERNEL_MAKE_OPTS+= HOSTLDFLAGS='-lpcreposix -Wl,-no_pie'
endif
# non-Linux platforms need elf.h
ifneq ($(OS_FOR_BUILD),Linux)
KERNEL_MAKE_OPTS+= HOSTCFLAGS='$(HOST_CPPFLAGS) ${HOST_CFLAGS}'
-KERNEL_MAKE_OPTS+= HOST_EXTRACFLAGS='-I${LINUX_DIR}/tools/include -I${ADK_TOPDIR}/adk/include -DKBUILD_NO_NLS'
+KERNEL_MAKE_OPTS+= HOST_EXTRACFLAGS='-I${LINUX_DIR}/tools/include -I${LINUX_DIR}/security/selinux/include -I${ADK_TOPDIR}/adk/include -DKBUILD_NO_NLS'
else
KERNEL_MAKE_OPTS+= HOSTCFLAGS='${HOST_CFLAGS}'
endif