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:
parent
472e51b975
commit
ea84819bbb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue