From 38a55849a2f3a237e643cf7abd149ba054dd3a96 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 4 Jul 2017 21:39:59 +0200 Subject: linux: fix compile of host-tools on non-Linux hosts, reported by Diez --- mk/kernel-vars.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk/kernel-vars.mk') 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 -- cgit v1.2.3