libsemanage: fix build w/gcc7
This commit is contained in:
parent
ba816ee087
commit
591fd5ee9b
@ -13,7 +13,13 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ bison flex ];
|
nativeBuildInputs = [ bison flex ];
|
||||||
buildInputs = [ libsepol libselinux ustr bzip2 libaudit ];
|
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 = ''
|
preBuild = ''
|
||||||
makeFlagsArray+=("PREFIX=$out")
|
makeFlagsArray+=("PREFIX=$out")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user