From: Felix Fietkau Date: Tue, 1 Jul 2008 21:38:28 +0000 (+0000) Subject: improve xargs compatibility check (mostly Darwin/Mac OS X related) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=171e7134db9ab6166aa97eddcc00beec81f9f35f;p=openwrt%2Fstaging%2Frobimarko.git improve xargs compatibility check (mostly Darwin/Mac OS X related) SVN-Revision: 11613 --- diff --git a/include/host.mk b/include/host.mk index 00eb1f55aa..9d40ec40a3 100644 --- a/include/host.mk +++ b/include/host.mk @@ -39,12 +39,11 @@ $(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; \ ) endif - -ifeq ($(HOST_OS),Linux) - XARGS:=xargs -r -else - XARGS:=xargs -endif