From 569b841e4c260b5f34d5753db1c0a59cdbad4da8 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Mon, 11 Jan 2021 19:51:08 +0100 Subject: [PATCH] efivar: don't use lto at all https://github.com/NixOS/nixpkgs/pull/109007#issuecomment-758150833 --- pkgs/tools/system/efivar/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/efivar/default.nix b/pkgs/tools/system/efivar/default.nix index 3300e0b2751..46741c1408a 100644 --- a/pkgs/tools/system/efivar/default.nix +++ b/pkgs/tools/system/efivar/default.nix @@ -40,8 +40,8 @@ stdenv.mkDerivation rec { }) ]; # We have no LTO here since commit 22284b07. With GCC 10 that triggers a warning. - postPatch = if stdenv.isi686 then "sed '/^OPTIMIZE /s/-flto//' -i Make.defaults" else null; - NIX_CFLAGS_COMPILE = if stdenv.isi686 then "-Wno-error=stringop-truncation" else null; + postPatch = "sed '/^OPTIMIZE /s/-flto//' -i Make.defaults"; + NIX_CFLAGS_COMPILE = "-Wno-error=stringop-truncation"; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ popt ];