unbound: disable lto on static builds (PR #96020)
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
Amended by vcunat (isMusl != isStatic).
https://github.com/NixOS/nixpkgs/pull/96223#issuecomment-681204478
commitcc1920a109690a207ff5f49385d48dac40eef216
authorArthur Gautier <baloo@superbaloo.net>
dateSun 12 Apr 2020, 20:03 (7 years ago)
parent82aeab7
pkgs/tools/networking/unbound/default.nix+2
@@ -30,6 +30,8 @@ stdenv.mkDerivation rec {
3030 "--with-rootkey-file=${dns-root-data}/root.key"
3131 "--enable-pie"
3232 "--enable-relro-now"
33+ ] ++ stdenv.lib.optional stdenv.hostPlatform.isStatic [
34+ "--disable-flto"
3335 ];
3436
3537 installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];