Following the official install instructions I built Oasis under Alpine Linux (which already uses musl libc), requiring the following:
Notes:
- Needed to symlink
luatolua5.4 - Built in a few minutes
- Resulting binaries (with no toolchain) totaled 82 MB
- Full source, build objects, Git overhead, etc. added roughly 1.5 GB
- I didn't build a kernel or add a bootloader since I was planning to use this in a chroot or container
Dependencies:
apk add binutils bison cc curl git gzip linux-headers lua ninja tzdata-utils pax xz zutils
config.lua:
Needed to set platform and cc (note the second key was not present in the template!)
target={
platform='x86_64-alpine-linux-musl-gcc',
cc='x86_64-alpine-linux-musl-gcc',
...