summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-05 13:27:22 +0200
committerRobin Gareus <robin@gareus.org>2015-10-05 13:27:22 +0200
commitf42ae066cc98359a9d2861b83c68dd102748fdcf (patch)
treefc01d5f6d0d6c7f4486f1129fe4f0503e0c69000
parentc4a3291b80ecdeba23df206d454238e7e3814fe6 (diff)
tweak linux package debug-symbol stripping
-rwxr-xr-xtools/linux_packaging/build15
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build
index 77541b366c..ff78849b0c 100755
--- a/tools/linux_packaging/build
+++ b/tools/linux_packaging/build
@@ -34,6 +34,7 @@ VENDOR=Ardour ;
EXENAME=ardour
GCC5ABI=false
BUILDTYPE=""
+NOSTRIP="libsuil|libserd|libsord|liblilv|libsratom|liblrdf|libardour|libpbd|libevoral"
if [ $# -eq 0 ] ; then
@@ -243,7 +244,7 @@ rm $ENVIRONMENT && chmod 775 $APPBIN/${EXENAME}${major_version}
echo "Copying ardour executable ...."
cp -v $BUILD_ROOT/gtk2_ardour/ardour-${release_version} $APPBIN/${EXENAME}-${release_version}
if test x$STRIP = xall ; then
- strip $APPBIN/${EXENAME}-${release_version}
+ strip -s $APPBIN/${EXENAME}-${release_version}
fi
# copy locale files
@@ -403,16 +404,25 @@ fi
# neither binary nor script exists)
if test -d $BUILD_ROOT/libs/fst ; then
cp $BUILD_ROOT/libs/fst/ardour-vst-scanner* $APPLIB || true
+ if test x$STRIP = xall ; then
+ strip -s $APPLIB/ardour-vst-scanner*
+ fi
fi
# vfork wrapper
if test -f $BUILD_ROOT/libs/vfork/ardour-exec-wrapper ; then
cp $BUILD_ROOT/libs/vfork/ardour-exec-wrapper $APPLIB
+ if test x$STRIP = xall ; then
+ strip -s $APPLIB/ardour-exec-wrapper
+ fi
fi
# ALSA device reservation tool (if available)
if test -f $BUILD_ROOT/libs/ardouralsautil/ardour-request-device; then
cp $BUILD_ROOT/libs/ardouralsautil/ardour-request-device $APPLIB/ || true
+ if test x$STRIP = xall ; then
+ strip -s $APPLIB/ardour-request-device
+ fi
fi
OURLIBDIR=$BUILD_ROOT/libs
@@ -521,6 +531,9 @@ if test x$STRIP = xall ; then
elif test x$STRIP = xsome ; then
echo Stripping dependent libraries
for l in $deplibs ; do
+ if echo "$l" | grep -qE "$NOSTRIP"; then
+ continue
+ fi
chmod u+w $APPLIB/$l
strip -s $APPLIB/$l
done