mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
scripts/build: strip all executables in /usr
Some packages install outside /usr/*bin, e.g. /usr/lib/bluetooth and executables remain unstripped. Try to strip everything executable except .ko and .so which are handled in separate cases.
This commit is contained in:
parent
0fffb04df6
commit
834e11c9d0
@ -488,7 +488,7 @@ if [ "$TARGET" = "target" -o "$TARGET" = "init" ]; then
|
|||||||
if [ "$TARGET" = "init" ]; then
|
if [ "$TARGET" = "init" ]; then
|
||||||
$STRIP $(find $INSTALL -type f -name "*.so*" 2>/dev/null) 2>/dev/null || :
|
$STRIP $(find $INSTALL -type f -name "*.so*" 2>/dev/null) 2>/dev/null || :
|
||||||
fi
|
fi
|
||||||
$STRIP $(find $INSTALL/bin $INSTALL/usr/bin $INSTALL/sbin $INSTALL/usr/sbin \
|
$STRIP $(find $INSTALL ! -name "*.so*" ! -name "*.ko" \
|
||||||
-type f -executable 2>/dev/null) 2>/dev/null || :
|
-type f -executable 2>/dev/null) 2>/dev/null || :
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user