From 151412edb65d39553bb26d410e045384d63a1682 Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 7 Oct 2010 11:33:12 +0000 Subject: [PATCH] [include] host.mk: introduce PATCH which refers to either gpatch or patch git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23287 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/host.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/host.mk b/include/host.mk index f3e47c872..9b8a32b67 100644 --- a/include/host.mk +++ b/include/host.mk @@ -59,6 +59,9 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk else \ echo 'XARGS:=xargs' >> $@; \ fi; \ + PATCH=`which gpatch 2>/dev/null`; \ + [ -n "$$PATCH" -a -x "$$PATCH" ] || PATCH=`which patch 2>/dev/null`; \ + echo "PATCH:=$$PATCH" >> $@; \ ) endif -- 2.20.1