There's a merged pull request on the void-packages repository php: Add cross compilation support https://github.com/void-linux/void-packages/pull/20952 Description: Support cross compilation by providing builddir path in configure and patching phar and pear makefiles to use host's php binary to install themselves. Therefore it also makes php a hostmakedepends when crosscompiling.