From 51c75b05e15f3201863cf1ad736388ac47abec55 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Tue, 21 Aug 2012 16:52:52 +0000 Subject: base: strip minidebuginfo Based on the code from notting on https://fedorahosted.org/fesco/ticket/868 Avoids a 15mb (compressed size) growth of XO-1.5 build. --- diff --git a/modules/base/kspost.50.stripdebug.nochroot.inc b/modules/base/kspost.50.stripdebug.nochroot.inc new file mode 100644 index 0000000..11b6b3a --- /dev/null +++ b/modules/base/kspost.50.stripdebug.nochroot.inc @@ -0,0 +1,5 @@ +find $INSTALL_ROOT/usr/{sbin,bin,lib,libexec} -xdev -type f | while read file; do + ftype=$(file -b "$file") + [ "${ftype:0:4}" = "ELF " ] && strip -R .gnu_debugdata "$file" || : +done +exit 0 -- cgit v0.9.1