aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Herve Codina <Herve.CODINA@celad.com>2015-09-15 15:27:06 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-09-19 14:59:46 +0200
commit87f3edecc65975085982515f3618c81bcfd9c023 (patch)
tree1a196a3348f031087426527da81e6bee75fde3f2 /Makefile
parentddfd700a02ca6964fd3fddad6a69f53905e7235d (diff)
downloadbuildroot-87f3edecc65975085982515f3618c81bcfd9c023.tar.gz
buildroot-87f3edecc65975085982515f3618c81bcfd9c023.tar.bz2
target-finalize: remove extra /usr/libexec/{*.a,*.la} files
Some packages, sudo for instance, install .a and .la files in $(TARGET_DIR)/usr/libexec. These files are not needed on target. This patch refactors the existing "find" invocations in target-finalize into a single one removing all .a and .la files from lib, usr/lib and usr/libexec. [Thomas: rework to use a single "find" invocation, and adjusted the commit log accordingly.] Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 23e2ee6044..fdbca02108 100644
--- a/Makefile
+++ b/Makefile
@@ -563,8 +563,8 @@ target-finalize: $(PACKAGES)
$(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/pkgconfig \
$(TARGET_DIR)/usr/lib/cmake $(TARGET_DIR)/usr/share/cmake
find $(TARGET_DIR)/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f
- find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
- find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
+ find $(TARGET_DIR)/lib $(TARGET_DIR)/usr/lib $(TARGET_DIR)/usr/libexec \
+ \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
ifneq ($(BR2_PACKAGE_GDB),y)
rm -rf $(TARGET_DIR)/usr/share/gdb
endif