Skip to content

Commit ed7443a

Browse files
authored
python3.12-pydantic-core: fix build (#180)
1 parent d747398 commit ed7443a

File tree

1 file changed

+2
-1
lines changed
  • tur-pypi-312/python3.12-pydantic-core

1 file changed

+2
-1
lines changed

tur-pypi-312/python3.12-pydantic-core/build.sh

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

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

4243
build-python -m maturin build --release --skip-auditwheel --target $CARGO_BUILD_TARGET
4344

0 commit comments

Comments
 (0)