diff options
author | Vladimír Čunát <v@cunat.cz> | 2021-01-04 17:50:29 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2021-01-04 18:00:34 +0100 |
commit | 1a57d96edd156958b12782e8c8b6a374142a7248 (patch) | |
tree | 716f5ddfcee870962f74498c6254cc4b5a0a4724 | |
parent | 4445bb7284f43feb2f3253d8fb1964f901df5ba1 (diff) | |
download | nixlib-1a57d96edd156958b12782e8c8b6a374142a7248.tar nixlib-1a57d96edd156958b12782e8c8b6a374142a7248.tar.gz nixlib-1a57d96edd156958b12782e8c8b6a374142a7248.tar.bz2 nixlib-1a57d96edd156958b12782e8c8b6a374142a7248.tar.lz nixlib-1a57d96edd156958b12782e8c8b6a374142a7248.tar.xz nixlib-1a57d96edd156958b12782e8c8b6a374142a7248.tar.zst nixlib-1a57d96edd156958b12782e8c8b6a374142a7248.zip |
efivar: fixup build on i686-linux
Fixes #108375. (I built the ISO locally) I believe the report is a false positive.
-rw-r--r-- | pkgs/tools/system/efivar/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/system/efivar/default.nix b/pkgs/tools/system/efivar/default.nix index ea0ed8afcfd0..afff716c249a 100644 --- a/pkgs/tools/system/efivar/default.nix +++ b/pkgs/tools/system/efivar/default.nix @@ -39,8 +39,9 @@ stdenv.mkDerivation rec { sha256 = "1ajj11wwsvamfspq4naanvw08h63gr0g71q0dfbrrywrhc0jlmdw"; }) ]; - # We have no LTO here since commit 22284b07. + # 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; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ popt ]; |