Installation
From a release (recommended for new machines)
- Download a compiled
mstraprelease from the Releases page - Extract and copy
mstrapto somewhere in yourPATH. (/usr/local/binis recommended)
via Homebrew (existing machines with Homebrew)
brew install maxfierke/mstrap/mstrap
Compiling from source
brew install crystal meson ninja(or use your system package manager)make RELEASE=1make installorsudo make install, depending on your access rights to/usr/local/bin. You may also specifyPREFIXto install to a different location.
If on Linux, passing STATIC=1 TARGET_CABI=musl requires a musl-based
compiler to output a fully statically-compiled binary. By default, it’s setup
for compilers from musl.cc.
Static library linking w/ GNU libc is still possible with STATIC=1 on GNU
libc-based Linux but libc will not be statically linked, and so the binary
will not be fully static.
If on macOS, statically compiled binaries are also not supported, but we
statically link to any library not provided by the base macOS if passed STATIC=1.