New comment by Duncaen on void-packages repository https://github.com/void-linux/void-packages/pull/49016#issuecomment-1973542504 Comment: Overwriting do_build will now now build the package if cross compiled. You probably want `make_use_env=yes` instead, the `gnu-makefile` buildstyle already sets `CC`. Edit: `make_use_env` is already used, so you want the opposite, but then it might not use the right cflags, you could just `vsed -e '/^CC/d' -i Makefile` in `post_patch`.