build: add musl static target (clang/gcc)

This commit is contained in:
2026-08-28 20:10:42 -04:00
parent d02b5aabcd
commit fa5d22af4b
2 changed files with 309 additions and 1 deletions
+8 -1
View File
@@ -5,4 +5,11 @@
SUBDIRS = src
TESTS = tests/run.sh
EXTRA_DIST = tests/run.sh
EXTRA_DIST = tests/run.sh scripts/build-static.sh
# Fully-static musl build (explicit opt-in; the default build stays dynamic).
# Requires a musl toolchain on the host - see scripts/build-static.sh for
# the probe order (musl-gcc -> musl-clang -> clang+sysroot -> apt -> musl.cc).
.PHONY: static
static:
$(SHELL) "$(srcdir)/scripts/build-static.sh"