git.iko.soy/typeable/nixpkgs
on master help sign in
libsemanage: fix build w/gcc7
commit591fd5ee9b4c1a5f1847b090eed83b13e784ff63 authorxeji <xeji@cat3.de> dateTue 13 Mar 2018, 22:40 (9 years ago) parentba816ee
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")