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
1 changed files with 2 additions and 2 deletions
|
@ -766,9 +766,9 @@ tidy_install() {
|
||||||
find ${STRIP_DIRS[@]} -type f 2>/dev/null | while read binary ; do
|
find ${STRIP_DIRS[@]} -type f 2>/dev/null | while read binary ; do
|
||||||
case "$(file -biz "$binary")" in
|
case "$(file -biz "$binary")" in
|
||||||
*application/x-sharedlib*) # Libraries (.so)
|
*application/x-sharedlib*) # Libraries (.so)
|
||||||
/usr/bin/strip --strip-debug "$binary";;
|
/usr/bin/strip -S "$binary";;
|
||||||
*application/x-archive*) # Libraries (.a)
|
*application/x-archive*) # Libraries (.a)
|
||||||
/usr/bin/strip --strip-debug "$binary";;
|
/usr/bin/strip -S "$binary";;
|
||||||
*application/x-executable*) # Binaries
|
*application/x-executable*) # Binaries
|
||||||
/usr/bin/strip "$binary";;
|
/usr/bin/strip "$binary";;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue