Browse Source

host.mk: introduce PATCH which refers to either gpatch or patch

SVN-Revision: 23287
Jo-Philipp Wich 15 years ago
parent
commit
3cf0250da2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      include/host.mk

+ 3 - 0
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