build: fix host menu config targets using ncurses
[openwrt/openwrt.git] / Makefile
index ab97eacc9d2bfe9618e9282bcd8f2a4903d02c08..65ee10a84b8d57c5bfed7047f0ed114a78190df1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ $(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt dir
 
 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)