summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-07-04 21:39:59 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-07-04 23:11:02 +0200
commit38a55849a2f3a237e643cf7abd149ba054dd3a96 (patch)
treecf5c0c87a11740c102a00363bc1f2f271e2f4ac4
parentd789a51d9072eaaa1b8ae8b637c760723db503c6 (diff)
linux: fix compile of host-tools on non-Linux hosts, reported by Diez
-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