fix(main/findomain): i686 build (#17830)

This commit is contained in:
Jia Yuan Lo 2023-09-16 09:53:58 +08:00 committed by GitHub
parent cb4e1c99b8
commit 2ccfa080bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_rust
# ld: error: undefined symbol: __atomic_is_lock_free
# ld: error: undefined symbol: __atomic_fetch_or_8
# ld: error: undefined symbol: __atomic_load
if [[ "${TERMUX_ARCH}" == "i686" ]]; then
RUSTFLAGS+=" -C link-arg=$(${CC} -print-libgcc-file-name)"
fi
: "${CARGO_HOME:=$HOME/.cargo}"
export CARGO_HOME