]> code.ossystems Code Review - openembedded-core.git/commitdiff
libgcc: correct mode on libgcc_s.so.1 to ensure it gets stripped
authorPhil Blundell <philb@gnu.org>
Wed, 20 Jul 2011 10:07:32 +0000 (11:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jul 2011 14:32:50 +0000 (15:32 +0100)
If the library is installed without execute permission then package.bbclass
will not consider it for stripping.  This is particularly unfortunate because
there seems to be a bug somewhere else which is causing all DSOs to end up with
a NEEDED dependency on libgcc_s, even if they don't actually require it, and
hence it is getting installed in all images (for uclibc on i586 at least).

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/libgcc_4.6.bb

index b0523c78acfc3762ac7ff6f1d1b687bf9a8e3e6b..6a77ce465355375791da68ed0502cde32c8c2289 100644 (file)
@@ -1,6 +1,6 @@
 require gcc-${PV}.inc
 
-PR = "r0"
+PR = "r1"
 
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
@@ -38,6 +38,7 @@ do_install () {
        fi
 
        chown -R root:root ${D}
+       chmod +x ${D}${base_libdir}/libgcc_s.so.*
 }
 
 do_package_write_ipk[depends] += "virtual/libc:do_package"