[oe-commits] Richard Purdie : libgcc: Mark libgcc_s as executable to ensure its stripped
git at git.openembedded.org
git at git.openembedded.org
Tue Mar 5 12:30:05 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 042e4664b648ca9d0a97a0d0baf5f39f9d81fdcc
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=042e4664b648ca9d0a97a0d0baf5f39f9d81fdcc
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Sun Mar 3 17:04:29 2013 +0000
libgcc: Mark libgcc_s as executable to ensure its stripped
libgcc_s is not marked as executable and hence it doesn't get stripped. This
means its about 1MB larger than it needs to be. There is no good reason it
shouldn't get stripped so ensure it does and mark as executable.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-devtools/gcc/libgcc_4.7.bb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-devtools/gcc/libgcc_4.7.bb b/meta/recipes-devtools/gcc/libgcc_4.7.bb
index 47669a2..6a0931f 100644
--- a/meta/recipes-devtools/gcc/libgcc_4.7.bb
+++ b/meta/recipes-devtools/gcc/libgcc_4.7.bb
@@ -57,6 +57,9 @@ do_install () {
# install the runtime in /usr/lib/ not in /usr/lib/gcc on target
# so that cross-gcc can find it in the sysroot
+ # Ensure libs are executable else they aren't stripped
+ chmod a+x ${D}/${base_libdir}/*
+
mv ${D}${libdir}/gcc/* ${D}${libdir}
rm -rf ${D}${libdir}/gcc/
# unwind.h is installed here which is shipped in gcc-cross
More information about the Openembedded-commits
mailing list