New comment by lulcat on void-packages repository https://github.com/void-linux/void-packages/issues/24240#issuecomment-866225118 Comment: in my distro I build both libjit and what I call libgccjit , (I guess it could have been gccjit). Either way, yes you A. add it to --enable-languages=jit. howevr, you should build it independently from the rest with only --enable-languages=jit. This is because unlike the rest, you want to also pass --enable-host-shared :) This is with glibc. I am currently building musl and jit fails with poison calloc thing, so I suppose a patch here and ye. Hope that helps.. (Regardless of being musl or not, the building independently advice stands).