Skip to content

Commit

Permalink
unbound: disable lto on static builds (PR #96020)
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Gautier <[email protected]>

Amended by vcunat (isMusl != isStatic).
#96223 (comment)
  • Loading branch information
baloo authored and vcunat committed Sep 1, 2020
1 parent 82aeab7 commit cc1920a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/tools/networking/unbound/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ stdenv.mkDerivation rec {
"--with-rootkey-file=${dns-root-data}/root.key"
"--enable-pie"
"--enable-relro-now"
] ++ stdenv.lib.optional stdenv.hostPlatform.isStatic [
"--disable-flto"
];

installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
Expand Down

0 comments on commit cc1920a

Please sign in to comment.