X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=Makefile;h=cff0e1d8d482993620ba967df924f19f19027152;hb=5ffa8d06c87fea2ce2159d2933c178b2ffe8399a;hp=bfb52c5ddd63ee2c38d4639c5fd7226e9103667f;hpb=22b7bd6b1355baf7220136b6bd8277a321b70c39;p=openwrt%2Fopenwrt.git diff --git a/Makefile b/Makefile index bfb52c5ddd..cff0e1d8d4 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,8 @@ $(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt dir world: -DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep -E '\/usr' -m 1) -export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH) +DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep '/usr' -m 1) +export PATH:=$(if $(STAGING_DIR),$(abspath $(STAGING_DIR)/../host/bin),$(TOPDIR)/staging_dir/host/bin):$(PATH) ifneq ($(OPENWRT_BUILD),1) _SINGLE=export MAKEFLAGS=$(space);