minimal-bootstrap: trim diffutils-static output
Disable NLS and remove installed documentation from the static diffutils output. The bootstrap path keeps the diff, cmp, diff3, and sdiff binaries. Size impact against upstream/staging: - diffutils-static closure: 0.896 MiB -> 0.661 MiB (-0.235 MiB) Assisted-by: codex with gpt-5.5-high
This commit is contained in:
@@ -69,6 +69,7 @@ bash.runCommand "${pname}-${version}"
|
||||
--build=${buildPlatform.config} \
|
||||
--host=${hostPlatform.config} \
|
||||
--disable-dependency-tracking \
|
||||
--disable-nls \
|
||||
CC=musl-gcc \
|
||||
CFLAGS=-static \
|
||||
ac_cv_path_PR_PROGRAM=pr
|
||||
@@ -78,4 +79,7 @@ bash.runCommand "${pname}-${version}"
|
||||
|
||||
# Install
|
||||
make -j $NIX_BUILD_CORES install-strip
|
||||
|
||||
# Remove documentation not needed in the bootstrap chain.
|
||||
rm -rf $out/share
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user