summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2008-07-18 14:20:24 +1000
committerDan McGee <dan@archlinux.org>2008-07-19 11:03:10 -0500
commita8405847e63c89e5694a84a96bef5023de890024 (patch)
tree6d4f20ef75a5234c90c7e0db6e0e845f1e67602e /scripts
parent99be5ab8d17ba2de351fff889012e1af85236ae0 (diff)
Strip *.a libraries in makepkg
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, 3 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 24ca38f5..27771025 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -735,7 +735,9 @@ tidy_install() {
bindirs="bin lib sbin usr/bin usr/lib usr/sbin usr/local/bin usr/local/lib usr/local/sbin opt/*/bin opt/*/lib opt/*/sbin"
find ${bindirs} -type f 2>/dev/null | while read binary ; do
case "$(file -biz "$binary")" in
- *application/x-sharedlib*) # Libraries
+ *application/x-sharedlib*) # Libraries (.so)
+ /usr/bin/strip --strip-debug "$binary";;
+ *application/x-archive*) # Libraries (.a)
/usr/bin/strip --strip-debug "$binary";;
*application/x-executable*) # Binaries
/usr/bin/strip "$binary";;