From aef047bf7d61880ed478e6410205ad2f7ff6067c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 30 Jan 2015 14:31:49 +0100 Subject: fix find command, reported by phil --- toolchain/glibc/Makefile | 2 +- toolchain/musl/Makefile | 2 +- toolchain/uclibc-ng/Makefile | 2 +- toolchain/uclibc/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile index 34f4c924a..5da057219 100644 --- a/toolchain/glibc/Makefile +++ b/toolchain/glibc/Makefile @@ -65,7 +65,7 @@ $(WRKBUILD)/.installed: touch $@ $(WRKBUILD)/.fixup: - -find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec {} \; + -find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec rm {} \; rm -rf $(STAGING_TARGET_DIR)/usr/share/locale $(STAGING_TARGET_DIR)/usr/share/i18n ifeq ($(ADK_TARGET_TOOLCHAIN),y) # strip target libs and host tools for toolchain builds diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile index 9b0cac27c..a5cfaa4a2 100644 --- a/toolchain/musl/Makefile +++ b/toolchain/musl/Makefile @@ -52,7 +52,7 @@ $(WRKBUILD)/.fixup: $(MAKE) -C $(WRKBUILD) CFLAGS='$(TARGET_CFLAGS)' all $(MAKE) -C $(WRKBUILD) CFLAGS='$(TARGET_CFLAGS)' DESTDIR=$(STAGING_TARGET_DIR) install # cleanup toolchain - -find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec {} \; + -find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec rm {} \; ifeq ($(ADK_TARGET_TOOLCHAIN),y) # strip target libs and host tools for toolchain builds PATH="$(TARGET_PATH)" debug='0' prefix='${TARGET_CROSS}' ${BASH} ${SCRIPT_DIR}/rstrip.sh \ diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile index d6dd4fb96..b2a18804d 100644 --- a/toolchain/uclibc-ng/Makefile +++ b/toolchain/uclibc-ng/Makefile @@ -167,7 +167,7 @@ ifeq ($(ADK_UCLIBC_TEST),y) endif ifeq ($(ADK_TARGET_TOOLCHAIN),y) # cleanup toolchain - -find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec {} \; + -find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec rm {} \; # strip target libs and host tools for toolchain builds PATH="$(TARGET_PATH)" debug='0' prefix='${TARGET_CROSS}' ${BASH} ${SCRIPT_DIR}/rstrip.sh \ $(STAGING_TARGET_DIR) $(TOOLCHAIN_DIR)/usr/lib/gcc/$(GNU_TARGET_NAME) diff --git a/toolchain/uclibc/Makefile b/toolchain/uclibc/Makefile index 4d3ab1ca3..ff227dc88 100644 --- a/toolchain/uclibc/Makefile +++ b/toolchain/uclibc/Makefile @@ -166,7 +166,7 @@ ifeq ($(ADK_UCLIBC_TEST),y) endif ifeq ($(ADK_TARGET_TOOLCHAIN),y) # cleanup toolchain - -find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec {} \; + -find $(STAGING_TARGET_DIR) $(STAGING_HOST_DIR) -name \*.la -exec rm {} \; # strip target libs and host tools for toolchain builds PATH="$(TARGET_PATH)" debug='0' prefix='${TARGET_CROSS}' ${BASH} ${SCRIPT_DIR}/rstrip.sh \ $(STAGING_TARGET_DIR) $(TOOLCHAIN_DIR)/usr/lib/gcc/$(GNU_TARGET_NAME) -- cgit v1.2.3