Skip to contentSkip to conversation

gcc-package-sdk: skip stripping *.py files

PATCH New Martin Jansa 1 participant 1 message Jun 25, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 gcc-package-sdk: skip stripping *.py files

---
 recipes/gcc/gcc-package-sdk.inc |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
recipes/gcc/gcc-package-sdk.inc +9 -3
index dd32ec7..014897a 100644
@@ -55,8 +55,14 @@ do_install () {
 	# Manually run the target stripper since we won't get it run by
 	# the packaging.
 	if [ "x${OLD_PACKAGE_STRIP}" != "xno" ]; then
-		${TARGET_PREFIX}strip ${D}${prefix}/${TARGET_SYS}/lib/libstdc++.so.*
-		${TARGET_PREFIX}strip ${D}${prefix}/${TARGET_SYS}/lib/libg2c.so.* || true
-		${TARGET_PREFIX}strip ${D}${prefix}/${TARGET_SYS}/lib/libgcc_s.so.*
+		for soFile in ${D}${prefix}/${TARGET_SYS}/lib/libstdc++.so.* ${D}${prefix}/${TARGET_SYS}/lib/libg2c.so.* ${D}${prefix}/${TARGET_SYS}/lib/libgcc_s.so.*; do
+			if echo ${soFile} | grep '.py$' ; then 
+				echo "Not stripping .py file ${soFile}"
+			elif echo ${soFile} | grep '*' ; then 
+				echo "Not stripping non-existent mask ${soFile}"
+			else
+				${TARGET_PREFIX}strip ${soFile}
+			fi
+		done
 	fi
 }
Signature · 1 line
1.7.0.2