[OpenWrt-Devel] [PATCH] sdk: fix host menu config targets using ncurses

Eneas U de Queiroz cotequeiroz at gmail.com
Fri Apr 17 12:24:10 EDT 2020

From: Petr Štetiar <ynezz at true.cz>

This applies 965f341aa9 ("build: fix host menu config targets using
ncurses") to the SDK top Makefile.

If there is a pkg-config in the staging dir, it will try to use it
instead of the host system's pkg-config; then it will fail to find the
ncurses package.  Linux's default will be used, which fails in some
cases, such as recent Gentoo systems.

CC: Petr Štetiar <ynezz at true.cz>
Signed-off-by: Eneas U de Queiroz <cotequeiroz at gmail.com>

diff --git a/target/sdk/files/Makefile b/target/sdk/files/Makefile
index 8df1904cb0..2f89ce0cf8 100644
--- a/target/sdk/files/Makefile
+++ b/target/sdk/files/Makefile
@@ -14,6 +14,7 @@ export TOPDIR LC_ALL LANG SDK
+DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep -E '\/usr' | head -n 1)
 export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
 ifneq ($(OPENWRT_BUILD),1)

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list