Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-08-21 16:52:52 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-08-21 16:52:52 (GMT)
commit51c75b05e15f3201863cf1ad736388ac47abec55 (patch)
tree764a4cd39b4e3aa2282e9ca8a1ddb88e2a643528
parent5f02371a0d30c87c98a97b946d0d9380675b0e7d (diff)
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.
-rw-r--r--modules/base/kspost.50.stripdebug.nochroot.inc5
1 files changed, 5 insertions, 0 deletions
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