Skip to content

Cross-Compile for Other Architectures

Target audience: Developers Goal: Build StageX packages for linux/arm64 and other platforms.

This page is under active development. StageX supports cross-compilation via LLVM/Clang's native multi-target capability. The PLATFORM variable in the Makefile targets controls the target architecture.

Key concepts that will be documented here:

  • Setting PLATFORM=linux/arm64 for ARM64 cross-builds
  • Configuring LLVM/Clang target triples (aarch64-linux-musl, x86_64-linux-musl)
  • Cross-compiling with QEMU user-mode emulation for testing
  • Using --platform flag with podman for multi-arch container builds

See Also