Skip to contentSkip to conversation

libgcc: correct mode on libgcc_s.so.1 to ensure it gets stripped

PATCH Applied Phil Blundell 2 participants 2 messages Jul 20, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libgcc: correct mode on libgcc_s.so.1 to ensure it gets stripped

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).

---
 meta/recipes-devtools/gcc/libgcc_4.6.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-devtools/gcc/libgcc_4.6.bb +2 -1
index e74be19..a53835f 100644
@@ -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++"
@@ -41,6 +41,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"
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 7 lines · Phil Blundell

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).

Merged to master, thanks.

Richard