Fix rust build some more

This commit is contained in:
BtbN 2022-09-12 22:46:28 +02:00
parent bd13b3b07d
commit 7bb9176330

View file

@ -30,18 +30,14 @@ ffbuild_dockerbuild() {
fi
if [[ -n "$FFBUILD_RUST_TARGET" ]]; then
if [[ $TARGET == win* ]]; then
unset PKG_CONFIG_LIBDIR
fi
myconf+=(
--target="$FFBUILD_RUST_TARGET"
)
cat <<EOF >$CARGO_HOME/config.toml
[build]
target = "$FFBUILD_RUST_TARGET"
[target.$FFBUILD_RUST_TARGET]
linker = "${FFBUILD_CROSS_PREFIX}ld"
linker = "${FFBUILD_CROSS_PREFIX}gcc"
ar = "${FFBUILD_CROSS_PREFIX}ar"
EOF
fi