3
0
Fork 0
forked from mirrors/nixpkgs

Merge #36936: libsemanage: fixup build with gcc7

This commit is contained in:
Vladimír Čunát 2018-03-14 15:44:38 +01:00
commit 527ff9c5fd
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -13,7 +13,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ bison flex ];
buildInputs = [ libsepol libselinux ustr bzip2 libaudit ];
NIX_CFLAGS_COMPILE = "-fstack-protector-all -std=gnu89";
NIX_CFLAGS_COMPILE = [
"-fstack-protector-all"
"-std=gnu89"
# these were added to fix build with gcc7. review on update
"-Wno-error=format-truncation"
"-Wno-error=implicit-fallthrough"
];
preBuild = ''
makeFlagsArray+=("PREFIX=$out")