librespot: fix cross compile builds with bindgen sysroot prefix

This commit is contained in:
Rudi Heitbaum 2024-11-07 09:05:09 +00:00
parent ab95dc48e5
commit 616f5b1b50

View File

@ -28,6 +28,7 @@ make_target() {
export CMAKE_TOOLCHAIN_FILE="${CMAKE_CONF}"
export CMAKE_INSTALL_PREFIX="/usr"
export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=${SYSROOT_PREFIX}"
export RUSTC_LINKER=${CC}
cargo build \
--target ${TARGET_NAME} \