aboutsummaryrefslogtreecommitdiffstats
path: root/target/sdk
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2020-04-17 13:24:10 -0300
committerPetr Štetiar <ynezz@true.cz>2020-05-20 17:03:45 +0200
commit1f2539a1f48b37b3aa99efba6bcef7cc2030793a (patch)
treef38a9a5100c1a86d78d627dd46b1a2fc86471c8a /target/sdk
parent3481f6ffc79f46fc7ba86a4cc15ad958e99b5a82 (diff)
downloadupstream-1f2539a1f48b37b3aa99efba6bcef7cc2030793a.tar.gz
upstream-1f2539a1f48b37b3aa99efba6bcef7cc2030793a.tar.bz2
upstream-1f2539a1f48b37b3aa99efba6bcef7cc2030793a.zip
sdk: fix host menu config targets using ncurses
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. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com> [fixed From: to match SoB] Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/sdk')
-rw-r--r--target/sdk/files/Makefile1
1 files changed, 1 insertions, 0 deletions
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
world:
+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)