mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Strip libraries debugging info
This commit is contained in:
parent
bc6020737c
commit
20b0d484e4
@ -360,12 +360,16 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
# Remove libtool files
|
||||
# Remove libtool files and strip debugging information
|
||||
for dir in "${COOKBOOK_STAGE}/lib" "${COOKBOOK_STAGE}/usr/lib"
|
||||
do
|
||||
if [ -d "${dir}" ]
|
||||
then
|
||||
find "${dir}" -type f -name '*.la' -exec rm -fv {} ';'
|
||||
if [ -z "${COOKBOOK_NOSTRIP}" ]
|
||||
then
|
||||
find "${dir}" -type f -exec "${GNU_TARGET}-strip" --strip-debug -v {} ';'
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user