Skip to content

Commit 938f143

Browse files
authored
python3.11-pydantic-core: fix build (#179)
1 parent ed7443a commit 938f143

File tree

1 file changed

+2
-1
lines changed
  • tur-pypi-311/python3.11-pydantic-core

1 file changed

+2
-1
lines changed

tur-pypi-311/python3.11-pydantic-core/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ termux_step_make_install() {
4141
export PYO3_CROSS_LIB_DIR=$TERMUX_PREFIX/lib
4242
export PYTHONPATH=$TERMUX_PREFIX/lib/python${TERMUX_PYTHON_VERSION}/site-packages
4343

44-
export RUSTFLAGS="-C link-args=-L$TERMUX_PREFIX/lib $RUSTFLAGS"
44+
local env_host=$(printf $CARGO_TARGET_NAME | tr a-z A-Z | sed s/-/_/g)
45+
export CARGO_TARGET_${env_host}_RUSTFLAGS+=" -C link-arg=-L$TERMUX_PREFIX/lib"
4546

4647
build-python -m maturin build --release --skip-auditwheel --target $CARGO_BUILD_TARGET
4748

0 commit comments

Comments
 (0)