summaryrefslogtreecommitdiff
path: root/include/kernel-build.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-10-04 17:51:48 +0200
committerFelix Fietkau <nbd@nbd.name>2016-10-04 17:51:49 +0200
commit86c966a8ae9c4e74b912a16a760aaed17c68eb32 (patch)
treeef0f490c26fe5af835f99280f63136a2ff356ed2 /include/kernel-build.mk
parent8a7a1b0029f200d4912fc2b5f940e1834cc22646 (diff)
downloadmtk-20170518-86c966a8ae9c4e74b912a16a760aaed17c68eb32.zip
mtk-20170518-86c966a8ae9c4e74b912a16a760aaed17c68eb32.tar.gz
mtk-20170518-86c966a8ae9c4e74b912a16a760aaed17c68eb32.tar.bz2
build: fix regression on running make kernel_menuconfig
The build system overrides HOST_LOADLIBES to add the staging dir to the library search path. menuconfig needs -lncurses, add another override for it. Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/kernel-build.mk')
-rw-r--r--include/kernel-build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index f1372df..04878f8 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -141,7 +141,7 @@ define BuildKernel
rm -f $(LINUX_DIR)/.config.prev
rm -f $(STAMP_CONFIGURED)
$(LINUX_RECONF_CMD) > $(LINUX_DIR)/.config
- $(_SINGLE)$(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) $$@
+ $(_SINGLE)$(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib -lncurses" $$@
$(LINUX_RECONF_DIFF) $(LINUX_DIR)/.config > $(LINUX_RECONFIG_TARGET)
install: $(LINUX_DIR)/.image