git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #36936: libsemanage: fixup build with gcc7
commit527ff9c5fd417c73074ded0b41b89fa071689062 authorVladimír Čunát <vcunat@gmail.com> dateWed 14 Mar 2018, 15:44 (9 years ago) parenteb0fa09591fd5e
1 file changed+7−1
pkgs/os-specific/linux/libsemanage/default.nix+7−1
pkgs/os-specific/linux/libsemanage/default.nix+7−1
@@ -13,7 +13,13 @@ stdenv.mkDerivation rec {
1313 nativeBuildInputs = [ bison flex ];
1414 buildInputs = [ libsepol libselinux ustr bzip2 libaudit ];
1515
16− NIX_CFLAGS_COMPILE = "-fstack-protector-all -std=gnu89";
16+ NIX_CFLAGS_COMPILE = [
17+ "-fstack-protector-all"
18+ "-std=gnu89"
19+ # these were added to fix build with gcc7. review on update
20+ "-Wno-error=format-truncation"
21+ "-Wno-error=implicit-fallthrough"
22+ ];
1723
1824 preBuild = ''
1925 makeFlagsArray+=("PREFIX=$out")