mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-03-20 14:44:43 +00:00
add to strip
This commit is contained in:
10
pkgbuild
10
pkgbuild
@@ -279,20 +279,20 @@ strip_files() {
|
||||
find . -type f 2>/dev/null | while read -r binary ; do
|
||||
case "$(file -bi "$binary")" in
|
||||
*application/x-sharedlib*) # Libraries (.so)
|
||||
strip --strip-unneeded "$binary" ;;
|
||||
strip --strip-unneeded "$binary" 2>/dev/null ;;
|
||||
*application/x-pie-executable*) # Libraries (.so)
|
||||
strip --strip-unneeded "$binary" ;;
|
||||
strip --strip-unneeded "$binary" 2>/dev/null ;;
|
||||
*application/x-archive*) # Libraries (.a)
|
||||
strip --strip-debug "$binary" ;;
|
||||
strip --strip-debug "$binary" 2>/dev/null ;;
|
||||
*application/x-object*)
|
||||
case "$binary" in
|
||||
*.ko) # Kernel module
|
||||
strip --strip-unneeded "$binary" ;;
|
||||
strip --strip-unneeded "$binary" 2>/dev/null ;;
|
||||
*)
|
||||
continue;;
|
||||
esac;;
|
||||
*application/x-executable*) # Binaries
|
||||
strip --strip-all "$binary" ;;
|
||||
strip --strip-all "$binary" 2>/dev/null ;;
|
||||
*)
|
||||
continue ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user