diff options
author | Cedric Staniewski <cedric@gmx.ca> | 2009-12-21 20:26:28 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-15 00:34:16 +0100 |
commit | 5fe41df8a9eaac288433a54e216f96b1fe729c01 (patch) | |
tree | 489613b7b44d05b6a10190a134b19858192e2732 /scripts | |
parent | 22331fdadb1b055030a6f68e2bb9eed589187a10 (diff) | |
download | pacman-5fe41df8.tar.gz pacman-5fe41df8.tar.xz |
makepkg: make strip options configurable
The newly added variables STRIP_BINARIES, STRIP_SHARED and STRIP_STATIC,
that are set in makepkg.conf, specify the strip options used on binaries
and shared and static libraries.
In addition, files are now stripped more aggressively by default.
Implements FS#13592 the way it was suggested by Allan in the comments.
Signed-off-by: Cedric Staniewski <cedric@gmx.ca>
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.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 84509f8b..0fe06513 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -841,18 +841,18 @@ tidy_install() { fi if [[ $(check_option strip) = y && -n ${STRIP_DIRS[*]} ]]; then - msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")" + msg2 "$(gettext "Stripping unneeded symbols from binaries and libraries...")" local binary find ${STRIP_DIRS[@]} -type f -writable 2>/dev/null | while read binary ; do case "$(file -biz "$binary")" in *compressed-encoding*) # Skip compressed binaries ;; *application/x-sharedlib*) # Libraries (.so) - /usr/bin/strip -S "$binary";; + /usr/bin/strip $STRIP_SHARED "$binary";; *application/x-archive*) # Libraries (.a) - /usr/bin/strip -S "$binary";; + /usr/bin/strip $STRIP_STATIC "$binary";; *application/x-executable*) # Binaries - /usr/bin/strip "$binary";; + /usr/bin/strip $STRIP_BINARIES "$binary";; esac done fi |