From 134c7e3cc6762fd195794c70d2eb4f436a01b137 Mon Sep 17 00:00:00 2001 From: Chongyun Lee <45286352+licy183@users.noreply.github.com> Date: Fri, 20 Dec 2024 22:57:56 +0800 Subject: [PATCH] python3.11-pydantic-core: fix build --- tur-pypi-311/python3.11-pydantic-core/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tur-pypi-311/python3.11-pydantic-core/build.sh b/tur-pypi-311/python3.11-pydantic-core/build.sh index b3c0443..be5dfc3 100644 --- a/tur-pypi-311/python3.11-pydantic-core/build.sh +++ b/tur-pypi-311/python3.11-pydantic-core/build.sh @@ -41,7 +41,8 @@ termux_step_make_install() { export PYO3_CROSS_LIB_DIR=$TERMUX_PREFIX/lib export PYTHONPATH=$TERMUX_PREFIX/lib/python${TERMUX_PYTHON_VERSION}/site-packages - export RUSTFLAGS="-C link-args=-L$TERMUX_PREFIX/lib $RUSTFLAGS" + local env_host=$(printf $CARGO_TARGET_NAME | tr a-z A-Z | sed s/-/_/g) + export CARGO_TARGET_${env_host}_RUSTFLAGS+=" -C link-arg=-L$TERMUX_PREFIX/lib" build-python -m maturin build --release --skip-auditwheel --target $CARGO_BUILD_TARGET