New comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/issues/20336#issuecomment-603612113 Comment: FWIW Here's what I think could work: + In a x86_64-musl build env extract `bsdtar xvf /host/binpkgs/ghc-bin-8.6.5_1.x86_64.xbps` + Create a symlink for a fake `libffi.so.6` with `ln -sf libffi.so.7.1.0 /usr/lib/libffi.so.6` + Modify ghc template to **not** depend on `ghc-bin` for the host + Also remove the `configure_args="--with-system-libffi"` from the template + Add a `make_build_args="binary-dist"` (?) + `./xbps-src -m x86_64-musl pkg ghc` + Save the resulting tarball (?) somewhere