aboutsummaryrefslogtreecommitdiffstats
path: root/include/host.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-01 21:38:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-01 21:38:28 +0000
commit9b6ee11b1b8fef05234407737a4af206abdf6ad0 (patch)
tree0c965dd1db0fd7933feee89492f9dac5242d3f8a /include/host.mk
parentb443cf01c1fb6333c92ac04a84fafdfb1c7207af (diff)
downloadupstream-9b6ee11b1b8fef05234407737a4af206abdf6ad0.tar.gz
upstream-9b6ee11b1b8fef05234407737a4af206abdf6ad0.tar.bz2
upstream-9b6ee11b1b8fef05234407737a4af206abdf6ad0.zip
improve xargs compatibility check (mostly Darwin/Mac OS X related)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/host.mk')
-rw-r--r--include/host.mk11
1 files changed, 5 insertions, 6 deletions
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