mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
efivar: fix LTO build
The LTO failure was not entirely due to22284b07
. Based on90fa4b7c10
This commit is contained in:
parent
233f451841
commit
c9d935da0b
1 changed files with 5 additions and 3 deletions
|
@ -39,9 +39,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1ajj11wwsvamfspq4naanvw08h63gr0g71q0dfbrrywrhc0jlmdw";
|
||||
})
|
||||
];
|
||||
# We have no LTO here since commit 22284b07. With GCC 10 that triggers a warning.
|
||||
postPatch = "sed '/^OPTIMIZE /s/-flto//' -i Make.defaults";
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=stringop-truncation";
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-Wno-error=stringop-truncation"
|
||||
"-flto-partition=none"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ popt ];
|
||||
|
|
Loading…
Reference in a new issue