makepkg: Make stripping debug symbols cross-platform

The Linux and BSD versions of strip have the --strip-debug option (as
well as the -S option), however Mac OS X only has -S.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Sebastian Nowicki 2009-02-08 15:12:14 +09:00 committed by Dan McGee
parent 472e51b975
commit ea84819bbb
1 changed files with 2 additions and 2 deletions

View File

@ -766,9 +766,9 @@ tidy_install() {
find ${STRIP_DIRS[@]} -type f 2>/dev/null | while read binary ; do
case "$(file -biz "$binary")" in
*application/x-sharedlib*) # Libraries (.so)
/usr/bin/strip --strip-debug "$binary";;
/usr/bin/strip -S "$binary";;
*application/x-archive*) # Libraries (.a)
/usr/bin/strip --strip-debug "$binary";;
/usr/bin/strip -S "$binary";;
*application/x-executable*) # Binaries
/usr/bin/strip "$binary";;
esac