From: Felix Fietkau Date: Wed, 5 Dec 2007 18:45:20 +0000 (+0000) Subject: Abstracted find to $(FIND) to allow use of gfind on non-GNU systems. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=40ab15892dbf9b2a3f2a9f7737de374c94733925;p=openwrt%2Fstaging%2Fdangole.git Abstracted find to $(FIND) to allow use of gfind on non-GNU systems. Signed-off-by: Andy Boyett SVN-Revision: 9659 --- diff --git a/include/host.mk b/include/host.mk index d163c997dd..00eb1f55aa 100644 --- a/include/host.mk +++ b/include/host.mk @@ -30,6 +30,9 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk TAR=`which gtar 2>/dev/null`; \ [ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar 2>/dev/null`; \ echo "TAR:=$$TAR" >> $@; \ + FIND=`which gfind 2>/dev/null`; \ + [ -n "$$FIND" -a -x "$$FIND" ] || FIND=`which find 2>/dev/null`; \ + echo "FIND:=$$FIND" >> $@; \ echo "BASH:=$(shell which bash)" >> $@; \ if find -L /tmp -maxdepth 0 >/dev/null 2>/dev/null; then \ echo 'FIND_L=find -L $$(1)' >>$@; \