[source] build: fix regression on running make kernel_menuconfig

LEDE Commits lede-commits at lists.infradead.org
Tue Oct 4 08:52:38 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/86c966a8ae9c4e74b912a16a760aaed17c68eb32

commit 86c966a8ae9c4e74b912a16a760aaed17c68eb32
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Oct 4 17:51:48 2016 +0200

    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 at nbd.name>
---
 include/kernel-build.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the lede-commits mailing list