summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/build
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linux_packaging/build')
-rwxr-xr-xtools/linux_packaging/build4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build
index e31f0beb4a..8f3c90f6ad 100755
--- a/tools/linux_packaging/build
+++ b/tools/linux_packaging/build
@@ -542,10 +542,14 @@ echo
# strip libraries
if test x$STRIP = xall ; then
echo Stripping all libraries
+ # Must be writable so that we can strip
+ find $APPLIB/ -name "*.so*" | xargs chmod u+w
+ # and strip ...
find $APPLIB/ -name "*.so*" | xargs strip
elif test x$STRIP = xsome ; then
echo Stripping dependent libraries
for l in $deplibs ; do
+ chmod u+w $APPLIB/$l
strip $APPLIB/$l
done
fi