cargo-c: fix x86_64 build

Fix dbd31b18f6
This commit is contained in:
Chongyun Lee 2024-02-10 22:37:07 +08:00
parent a5b171b983
commit 7c9cc4cecf
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ termux_step_pre_configure() {
$_CARGO_TARGET_LIBDIR/libz.so.1
ln -sfT $(readlink -f $TERMUX_PREFIX/lib/libz.so.tmp) \
$_CARGO_TARGET_LIBDIR/libz.so
if [[ "${TERMUX_ARCH}" == "x86_64" ]]; then
RUSTFLAGS+=" -C link-arg=$($CC -print-libgcc-file-name)"
fi
}
termux_step_post_make_install() {