workaround for huge musl binaries

something in our configuration is causing gcc to generate binaries
in excess of 68K for "hello world". hardeningDisable seems to stop it
doing that, turning it on for s6 which writes _lots_ of binaries
but would be good to get to the bottom of this

https://discourse.nixos.org/t/crosscompilation-to-musl32-problems/3110
may have more
This commit is contained in:
Daniel Barlow 2023-04-22 23:04:03 +01:00
parent 245bf534e6
commit 3595e36294

View file

@ -33,6 +33,7 @@ let
"--disable-static"
"--enable-shared"
];
hardeningDisable = ["all"];
stripAllList = [ "sbin" "bin" ];
patches =
(if o ? patches then o.patches else []) ++