3
0
Fork 0
forked from mirrors/nixpkgs

nixVersions.nix_2_10: disable LTO in static builds

This commit is contained in:
Thiago Kenji Okada 2022-07-14 23:49:08 +01:00 committed by Bernardo Meurer
parent 8251e3a1fd
commit 3775999eff

View file

@ -167,7 +167,7 @@ self = stdenv.mkDerivation {
] ++ lib.optionals (!withLibseccomp) [
# RISC-V support in progress https://github.com/seccomp/libseccomp/pull/50
"--disable-seccomp-sandboxing"
] ++ lib.optionals (atLeast210 && stdenv.cc.isGNU) [
] ++ lib.optionals (atLeast210 && stdenv.cc.isGNU && !enableStatic) [
"--enable-lto"
];