minimal-bootstrap: trim gnumake-static output

Disable NLS and remove installed headers and documentation. The bootstrap path only needs the static make binary.

Size impact against upstream/staging:

- gnumake-static closure: 0.963 MiB -> 0.325 MiB (-0.638 MiB)

Assisted-by: codex with gpt-5.5-high
This commit is contained in:
Aliaksandr 2026-05-22 05:42:33 +03:00
commit 61300f0b34
No known key found for this signature in database
GPG key ID: CACB28BA93CE71A2

View file

@ -79,6 +79,7 @@ bash.runCommand "${pname}-${version}"
--build=${buildPlatform.config} \
--host=${hostPlatform.config} \
--disable-dependency-tracking \
--disable-nls \
CC=musl-gcc \
CFLAGS="-static -std=gnu17"
@ -87,4 +88,7 @@ bash.runCommand "${pname}-${version}"
# Install
make -j $NIX_BUILD_CORES install-strip
# Remove files not needed to execute make in the bootstrap chain.
rm -rf $out/include $out/share
''