improve xargs compatibility check (mostly Darwin/Mac OS X related)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 1 Jul 2008 21:38:28 +0000 (21:38 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 1 Jul 2008 21:38:28 +0000 (21:38 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11613 3c298f89-4303-0410-b956-a3cf2f4a3e73

include/host.mk

index 00eb1f5..9d40ec4 100644 (file)
@@ -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
This page took 0.028372 seconds and 4 git commands to generate.