nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge #36936: libsemanage: fixup build with gcc7

(cherry picked from commit 527ff9c5fd417c73074ded0b41b89fa071689062)

+7 -1
+7 -1
pkgs/os-specific/linux/libsemanage/default.nix
··· 13 13 nativeBuildInputs = [ bison flex ]; 14 14 buildInputs = [ libsepol libselinux ustr bzip2 libaudit ]; 15 15 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 + ]; 17 23 18 24 preBuild = '' 19 25 makeFlagsArray+=("PREFIX=$out")