New comment by Javyre on void-packages repository https://github.com/void-linux/void-packages/issues/24240#issuecomment-674592347 Comment: Hey @zenny, here is a template for `libgccjit` that I got working today on my machine (`x86-64 glibc`). I hope this could serve as a starting point for a real `libgccjit` template for void: https://gist.github.com/Javyre/2578176bf09638733c08586e654fb04d I used this as reference: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libgccjit I tried modifying the existing `gcc` template to have a subpackage for `libgccjit`, but I couldn't get it to work as I'd keep getting errors telling me to add `-fPIC` although I had already added it to the flags. Either way, it is not recommended to use the same `./configure` call for the gcc compilers as for `libgccjit` since `-fPIC` and `--enable-host-shared` come at a performance cost: https://gcc.gnu.org/onlinedocs/gcc-8.3.0/jit/internals/index.html#packaging-notes