Strip libraries debugging info

This commit is contained in:
Wildan M 2026-04-19 08:34:27 +07:00
parent bc6020737c
commit 20b0d484e4
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -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