librsvg: Allow multiple definitions for arm

This commit is contained in:
Tee KOBAYASHI 2021-12-14 18:01:07 +09:00 committed by Henrik Grimler
parent b9efc15099
commit c979b31b2c
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ termux_step_pre_configure() {
LDFLAGS+=" -fuse-ld=lld"
# Work around https://gitlab.gnome.org/GNOME/librsvg/-/issues/820
if [ "$TERMUX_ARCH" = "arm" ]; then
LDFLAGS+=" -Wl,-z,muldefs"
fi
# See https://github.com/GNOME/librsvg/blob/master/COMPILING.md
export RUST_TARGET=$CARGO_TARGET_NAME
}