Skip to content

Commit

Permalink
libsemanage: fix build w/gcc7
Browse files Browse the repository at this point in the history
  • Loading branch information
xeji committed Mar 13, 2018
1 parent ba816ee commit 591fd5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/os-specific/linux/libsemanage/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 591fd5e

Please sign in to comment.