cosmic-files, cosmic-term: manually link libiconv on statically linked targets

This commit is contained in:
Jeremy Soller 2026-05-01 11:26:52 -06:00
parent 0ab4ceed34
commit 2a499c179a
2 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,11 @@ dependencies = [
script = """
DYNAMIC_INIT
export GETTEXT_DIR="${COOKBOOK_SYSROOT}/usr"
if [ "${COOKBOOK_DYNAMIC}" != "1" ]
then
# Statically linked i586 and riscv64gc need libiconv manually linked
export RUSTFLAGS="${RUSTFLAGS} -liconv"
fi
cookbook_cargo --no-default-features
mkdir -pv "${COOKBOOK_STAGE}/usr/share/ui/apps/"

View File

@ -12,6 +12,11 @@ dependencies = [
script = """
DYNAMIC_INIT
export GETTEXT_DIR="${COOKBOOK_SYSROOT}/usr"
if [ "${COOKBOOK_DYNAMIC}" != "1" ]
then
# Statically linked i586 and riscv64gc need libiconv manually linked
export RUSTFLAGS="${RUSTFLAGS} -liconv"
fi
cookbook_cargo --no-default-features
mkdir -pv "${COOKBOOK_STAGE}/usr/share/ui/apps"