From cc1920a109690a207ff5f49385d48dac40eef216 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Sun, 12 Apr 2020 20:03:02 +0000 Subject: [PATCH] unbound: disable lto on static builds (PR #96020) Signed-off-by: Arthur Gautier Amended by vcunat (isMusl != isStatic). https://github.com/NixOS/nixpkgs/pull/96223#issuecomment-681204478 --- pkgs/tools/networking/unbound/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/networking/unbound/default.nix b/pkgs/tools/networking/unbound/default.nix index 39a7b11f09f..4ee330eb918 100644 --- a/pkgs/tools/networking/unbound/default.nix +++ b/pkgs/tools/networking/unbound/default.nix @@ -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" ];