New comment by SpidFightFR on void-packages repository https://github.com/void-linux/void-packages/pull/48480#issuecomment-1948430796 Comment: > i see `build-helper/rust.sh : 28` has `export BINDGEN_EXTRA_CLANG_ARGS+=" --sysroot=${XBPS_CROSS_BASE} -I${XBPS_CROSS_BASE}/usr/include"` > > not sure how or where that's used? 1 or 2 other templates seem to have the var. > > try this in mesa template? idk rust really but quick search points to the bindgen cross build var (may want to do for only musl??? dont think it would matter but) > > ```shell > post_configure() { > if [ "$CROSS_BUILD" ]; then > find -iname "*.ninja" -exec sed -i "{}" \ > -e "/rustc/s; --sysroot ${XBPS_CROSS_BASE}/usr;;g" \ > \; > BINDGEN_CFLAGS="--target=$XBPS_CROSS_TRIPLET \ > --sysroot=${XBPS_CROSS_BASE} ${BINDGEN_INCLUDE_FLAGS}" > fi > } > ``` trying that... let's see how this turns out.