X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fhost.mk;h=000fb1898475270eb533d833e5012ecdfd3e50bd;hb=0dc1cfb95f965deba188206c263645e672b78ed9;hp=f3e47c8723c452218968c7b8d2b7843a97e89acc;hpb=0c43584a88dfa1ef89a2dc52c380bf218281f57f;p=openwrt.git diff --git a/include/host.mk b/include/host.mk index f3e47c8723..000fb18984 100644 --- a/include/host.mk +++ b/include/host.mk @@ -54,11 +54,12 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk else \ echo "FIND_L=$$FIND \$$(1) -follow" >> $@; \ fi; \ - if xargs --help 2>&1 | grep 'gnu.org' >/dev/null; then \ - echo 'XARGS:=xargs -r' >> $@; \ - 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" >> $@; \ + PYTHON=`which python2.7 2>/dev/null`; \ + [ -n "$$PYTHON" -a -x "$$PYTHON" ] || PYTHON=`which python 2>/dev/null`; \ + echo "PYTHON:=$$PYTHON" >> $@; \ ) endif