From 40a88809c9db4b3fef80e665490b428de497b3a1 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Thu, 18 Sep 2008 09:35:33 +0000 Subject: [PATCH] Fix stripping of shared objects. I don't know when this broke but at some point file has stopped reporting 'not stripped' for shared libraries. To detect such an issue in the future the strip functions will now print the names of files they are working on. --- buildpkg.packaging.irix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildpkg.packaging.irix b/buildpkg.packaging.irix index ebedd00..411475d 100644 --- a/buildpkg.packaging.irix +++ b/buildpkg.packaging.irix @@ -606,6 +606,7 @@ do_strip_bin() for f in `${__find} . -type f \( -perm -0100 -o -perm -0010 -o -perm -0001 \) -exec ${__file} {} \; | \ ${__grep} -v ' dynamic lib ' | \ ${__sed} -n -e 's/^\(.*\):[ ]*ELF.*\(not stripped\).*/\1/p'`; do + echo "strip_bin: $f" ${__strip} $strip_elf_args $f || : done } @@ -620,7 +621,8 @@ do_strip_shared() # our libraries are not (should not be, at least) +x. for f in `${__find} . -type f -a -exec ${__file} {} \; | \ grep ' dynamic lib ' | \ - ${__sed} -n -e 's/^\(.*\):[ ]*ELF.*\(not stripped\).*/\1/p'`; do + ${__sed} -n -e 's/^\(.*\):[ ]*ELF.*/\1/p'`; do + echo "strip_shared: $f" ${__strip} $strip_shared_args $f done } @@ -634,6 +636,7 @@ do_strip_static() for f in `${__find} . -type f -a -exec ${__file} {} \; | \ ${__grep} 'current ar archive' | \ ${__sed} -n -e 's/^\(.*\):[ ]*current ar archive .*/\1/p'`; do + echo "strip_static: $f" ${__strip} $strip_static_args $f done }