Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.13 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.13 KB

🗿 Static

Build things statically with the magic of musl.

Usage

Enter a directory and run:

# Build for current CPU architecture.
$ docker buildx build --output output .

# Build for multiple architectures (AMD64 & ARM64).
$ docker buildx build --platform linux/amd64,linux/arm64 --output output .

Then find the programs in the output directory.

Optional build arguments:

  • PREFIX: The --prefix option for configure command.
  • PROXY: The http_proxy & https_proxy environment variable while building.

Q&A

What is the builder?

An image with built musl libc library and common build tools.

It's built with .musl/Dockerfile and uploaded to moycat/musl to save time.

Having problem building for other architectures?

Firstly you need a Docker version with buildx support.

Then you have to create a builder for multi-platform building.

If you are working on a native Linux, try running:

$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes