mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
3a2649965b
commit
61300f0b34
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue