forked from mirrors/nixpkgs
Merge pull request #68661 from JohnAZoidberg/xen-gcc8
xen: Ignore GCC8 errors
This commit is contained in:
commit
da28be646f
|
@ -167,8 +167,15 @@ callPackage (import ./generic.nix (rec {
|
|||
xenpmdpatch
|
||||
];
|
||||
|
||||
# Fix build on Glibc 2.24.
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
# Fix build on Glibc 2.24
|
||||
"-Wno-error=deprecated-declarations"
|
||||
# Fix build with GCC8
|
||||
"-Wno-error=maybe-uninitialized"
|
||||
"-Wno-error=stringop-truncation"
|
||||
"-Wno-error=format-truncation"
|
||||
"-Wno-error=array-bounds"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Avoid a glibc >= 2.25 deprecation warnings that get fatal via -Werror.
|
||||
|
|
Loading…
Reference in a new issue