a73x

5b822c85

build: make install ships the portable image, like every release

a73x   2026-09-02 06:45

Commit message
build: make install ships the portable image, like every release

A native install cannot leave the machine that compiled it: mux d
upgrade HOST streams the installed image, and the laptop answered a
native build with an illegal instruction. The measured cost of musl is
22ms on the 15MB reattach repaint (92 -> 114 against a 200ms ceiling);
the interactive legs moved inside their noise.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Makefile
Old New
@@ -34,8 +34,14 @@ BINDIR ?= $(HOME)/.local/bin
34 # PATH: a box with an older install keeps them forever otherwise, and a 34 # PATH: a box with an older install keeps them forever otherwise, and a
35 # `muxd` still answering `--version` is a daemon someone will start. 35 # `muxd` still answering `--version` is a daemon someone will start.
36 INSTDIR ?= dist/install 36 INSTDIR ?= dist/install
37 # Static musl, same as every release: the installed image is the one
38 # `mux d upgrade HOST` streams to other boxes, and a native build dies on
39 # any CPU older than this one (measured: illegal instruction on the
40 # laptop, 2026-09-02). Cost, measured the same day, best-of-5: repaint
41 # 92ms -> 114ms (musl memcpy on 15MB of paint bytes, paid once per
42 # reattach); the solo and client legs moved inside their noise.
37 install: 43 install:
38 $(ZIG) build -Doptimize=ReleaseSafe -p $(INSTDIR) 44 $(ZIG) build -Dtarget=x86_64-linux-musl -Doptimize=ReleaseSafe -p $(INSTDIR)
39 install -d $(BINDIR) 45 install -d $(BINDIR)
40 install -m755 $(INSTDIR)/bin/mux $(BINDIR)/ 46 install -m755 $(INSTDIR)/bin/mux $(BINDIR)/
41 rm -f $(BINDIR)/muxd $(BINDIR)/muxa $(BINDIR)/muxweb 47 rm -f $(BINDIR)/muxd $(BINDIR)/muxa $(BINDIR)/muxweb