scripts/build: fix thread debugging. do not strip glibc.

fixes corrupt stack on arm
This commit is contained in:
Stefan Saraev 2016-01-31 00:21:45 +01:00 committed by Lukas Rusak
parent 59bf03a90a
commit 66aa95e906

View File

@ -352,8 +352,16 @@ if [ ! -f $STAMP ]; then
find $INSTALL -type d -exec rmdir -p "{}" ";" 2>/dev/null || true
if [ ! "$DEBUG" = yes ]; then
$STRIP `find $INSTALL -name "*.so" 2>/dev/null` 2>/dev/null || :
$STRIP `find $INSTALL -name "*.so.[0-9]*" 2>/dev/null` 2>/dev/null || :
$STRIP `find $INSTALL \
-type f -name "*.so*" \
! -name "ld-*.so" \
! -name "libc-*.so" \
! -name "libpthread-*.so" \
! -name "libthread_db-*so" \
2>/dev/null` 2>/dev/null || :
if [ "$TARGET" = "init" ]; then
$STRIP `find $INSTALL -type f -name "*.so*" 2>/dev/null` 2>/dev/null || :
fi
fi
fi
fi