www-apps/zola: Disable stripping and LTO by cargo

Signed-off-by: zyxhere💭 <zyx@envs.net>
This commit is contained in:
zyxhere💭
2026-01-21 05:38:35 +00:00
parent 885afdffb8
commit 9c444c544f

View File

@@ -632,6 +632,13 @@ DEPEND="${RDEPEND}"
QA_FLAGS_IGNORED="usr/bin/${PN}"
src_prepare() {
default
# Disable stripping and LTO
sed -i 's/profile.release/profile.dummy/' "${S}"/Cargo.toml
sed -i '/\profile.dummy/a inherits = \"release\"' "${S}"/Cargo.toml
}
src_configure() {
# Use system libraries
export RUSTONIG_SYSTEM_LIBONIG=1