From d82ce045579a36df43120d8174255ef49470e5e3 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 28 Jul 2022 21:50:47 +0100 Subject: [PATCH] windows.mingw_w64: enable stripping With 0507725 "setup-hooks/strip.sh: run RANLIB on static archives after stripping" it should now be safe to run strip on wider range of .a files. mingw-w64 is a good example where a reference was preserved to gcc from intermediate stage. Enabling stripping by default decreases `pkgsCross.mingw32` closure for 20%: Before: $ nix path-info -rsSh $(nix-build -A pkgsCross.mingw32.stdenv) ... /nix/store/qzhkidff0wxhqf2gi97ng6qismzvpnbp-stdenv-linux 43.6K 1.0G After: $ nix path-info -rsSh $(nix-build -A pkgsCross.mingw32.stdenv) ... /nix/store/fj4dv1n3sa3jgcb1j3nwn6njsf943n48-stdenv-linux 43.6K 792.4M --- pkgs/os-specific/windows/mingw-w64/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/os-specific/windows/mingw-w64/default.nix b/pkgs/os-specific/windows/mingw-w64/default.nix index 38293e65f70f..569b149868ff 100644 --- a/pkgs/os-specific/windows/mingw-w64/default.nix +++ b/pkgs/os-specific/windows/mingw-w64/default.nix @@ -21,7 +21,6 @@ in stdenv.mkDerivation { enableParallelBuilding = true; buildInputs = [ windows.mingw_w64_headers ]; - dontStrip = true; hardeningDisable = [ "stackprotector" "fortify" ]; meta = {