From 50941aa7a78ee2eb6917fedab234f2d2fe03dbf1 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Thu, 31 May 2018 11:06:13 +0200 Subject: use find -delete instead of find | xargs rm Also add -r to all instances of xargs to prevent execution when no matches are found. --- rules/cross-gcc.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules/cross-gcc.make') diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make index 49577a8..4ddc508 100644 --- a/rules/cross-gcc.make +++ b/rules/cross-gcc.make @@ -192,7 +192,7 @@ $(STATEDIR)/cross-gcc.install: $(STATEDIR)/cross-gcc.report fi || exit 1; \ done - @find $(PTXCONF_SYSROOT_CROSS) -name "*.la" -print0 | xargs -0 rm -v -f + @find $(PTXCONF_SYSROOT_CROSS) -name "*.la" -printf 'removing %p' -delete ifneq ($(call remove_quotes,$(PTXCONF_DESTDIR)),) sed -i -e 's;$(call remove_quotes,$(PTXCONF_DESTDIR));;' \ $(PTXCONF_SYSROOT_CROSS)/lib/gcc/$(PTXCONF_GNU_TARGET)/$(CROSS_GCC_VERSION)/install-tools/mkheaders.conf -- cgit v1.2.3