tweak linux package debug-symbol stripping

This commit is contained in:
Robin Gareus 2015-10-05 13:27:22 +02:00
parent c4a3291b80
commit f42ae066cc

View file

@ -34,6 +34,7 @@ VENDOR=Ardour ;
EXENAME=ardour EXENAME=ardour
GCC5ABI=false GCC5ABI=false
BUILDTYPE="" BUILDTYPE=""
NOSTRIP="libsuil|libserd|libsord|liblilv|libsratom|liblrdf|libardour|libpbd|libevoral"
if [ $# -eq 0 ] ; then if [ $# -eq 0 ] ; then
@ -243,7 +244,7 @@ rm $ENVIRONMENT && chmod 775 $APPBIN/${EXENAME}${major_version}
echo "Copying ardour executable ...." echo "Copying ardour executable ...."
cp -v $BUILD_ROOT/gtk2_ardour/ardour-${release_version} $APPBIN/${EXENAME}-${release_version} cp -v $BUILD_ROOT/gtk2_ardour/ardour-${release_version} $APPBIN/${EXENAME}-${release_version}
if test x$STRIP = xall ; then if test x$STRIP = xall ; then
strip $APPBIN/${EXENAME}-${release_version} strip -s $APPBIN/${EXENAME}-${release_version}
fi fi
# copy locale files # copy locale files
@ -403,16 +404,25 @@ fi
# neither binary nor script exists) # neither binary nor script exists)
if test -d $BUILD_ROOT/libs/fst ; then if test -d $BUILD_ROOT/libs/fst ; then
cp $BUILD_ROOT/libs/fst/ardour-vst-scanner* $APPLIB || true cp $BUILD_ROOT/libs/fst/ardour-vst-scanner* $APPLIB || true
if test x$STRIP = xall ; then
strip -s $APPLIB/ardour-vst-scanner*
fi
fi fi
# vfork wrapper # vfork wrapper
if test -f $BUILD_ROOT/libs/vfork/ardour-exec-wrapper ; then if test -f $BUILD_ROOT/libs/vfork/ardour-exec-wrapper ; then
cp $BUILD_ROOT/libs/vfork/ardour-exec-wrapper $APPLIB cp $BUILD_ROOT/libs/vfork/ardour-exec-wrapper $APPLIB
if test x$STRIP = xall ; then
strip -s $APPLIB/ardour-exec-wrapper
fi
fi fi
# ALSA device reservation tool (if available) # ALSA device reservation tool (if available)
if test -f $BUILD_ROOT/libs/ardouralsautil/ardour-request-device; then if test -f $BUILD_ROOT/libs/ardouralsautil/ardour-request-device; then
cp $BUILD_ROOT/libs/ardouralsautil/ardour-request-device $APPLIB/ || true cp $BUILD_ROOT/libs/ardouralsautil/ardour-request-device $APPLIB/ || true
if test x$STRIP = xall ; then
strip -s $APPLIB/ardour-request-device
fi
fi fi
OURLIBDIR=$BUILD_ROOT/libs OURLIBDIR=$BUILD_ROOT/libs
@ -521,6 +531,9 @@ if test x$STRIP = xall ; then
elif test x$STRIP = xsome ; then elif test x$STRIP = xsome ; then
echo Stripping dependent libraries echo Stripping dependent libraries
for l in $deplibs ; do for l in $deplibs ; do
if echo "$l" | grep -qE "$NOSTRIP"; then
continue
fi
chmod u+w $APPLIB/$l chmod u+w $APPLIB/$l
strip -s $APPLIB/$l strip -s $APPLIB/$l
done done