New comment by oreo639 on void-packages repository https://github.com/void-linux/void-packages/pull/49016#issuecomment-1974769506 Comment: The way you have it set up, make doesn't run in `do_build()` when native compiling. The object files getting compiled `do_install()` is not correct as the variables set when running `do_install()` are not necessarily the same as with `do_build()`. You don't need to use a custom `do_build()` here, there is a variable `make_build_args` for this purpose, although as Duncaen said, the correct fix is to remove the CC assignment in the makefile using vsed so that the compiler can be specified by the environment.