summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSebastian Nowicki <sebnow@gmail.com>2009-02-08 15:12:14 +0900
committerDan McGee <dan@archlinux.org>2009-02-08 11:33:33 -0600
commitea84819bbbdba90f950339790d482f2348c2e9ef (patch)
treefe96e3da9df1bb3d5726347f93acf36d82cbb934 /scripts
parent472e51b975b9cb8fe1f67c03ff72bbc067fa7f01 (diff)
downloadpacman-ea84819bbbdba90f950339790d482f2348c2e9ef.tar.xz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 04d2aca1..42b1092a 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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