From 857d5a086ac63bd87689782a82f87f349e4daafd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 14 Mar 2018 15:44:38 +0100 Subject: [PATCH] Merge #36936: libsemanage: fixup build with gcc7 (cherry picked from commit 527ff9c5fd417c73074ded0b41b89fa071689062) --- pkgs/os-specific/linux/libsemanage/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/libsemanage/default.nix b/pkgs/os-specific/linux/libsemanage/default.nix index c60d96bba784..587349e4067e 100644 --- a/pkgs/os-specific/linux/libsemanage/default.nix +++ b/pkgs/os-specific/linux/libsemanage/default.nix @@ -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")