Merge branch 'strip-lib' into 'master'

Strip libraries debugging info

Closes #1793

See merge request redox-os/redox!2085
This commit is contained in:
Jeremy Soller 2026-04-19 08:39:36 -06:00
commit 129a3ce455

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