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
This commit is contained in:
Arthur Gautier 2020-04-12 20:03:02 +00:00 committed by Vladimír Čunát
parent 82aeab778f
commit cc1920a109
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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" ];