From 6ca155d0c48e0703a6cb9d3769c5c7cac0e2136b Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Wed, 2 Jun 2004 07:58:42 +0000 Subject: [PATCH] Small fix for strip function. It may or may not work on Irix. It depends on what /usr/bin/file returns on Irix. --- buildpkg.functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildpkg.functions b/buildpkg.functions index 93da17f..b923f49 100644 --- a/buildpkg.functions +++ b/buildpkg.functions @@ -333,7 +333,7 @@ strip() if [ $dostrip_elf -eq 1 ]; then echo "Stripping ELF binaries..." for f in `$FIND . -type f \( -perm -0100 -o -perm -0010 -o -perm -0001 \) -exec $FILE {} \; | \ - $GREP -v ' shared object,' | \ + $GREP -v ' dynamic lib ' | \ $SED -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do $STRIP $strip_elf_args $f || : done @@ -344,7 +344,7 @@ strip() # Please note we don't restrict our search to executable files because # our libraries are not (should not be, at least) +x. for f in `$FIND . -type f -a -exec $FILE {} \; | \ - grep ' shared object,' | \ + grep ' dynamic lib ' | \ $SED -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do $STRIP $strip_shared_args $f done