libsepol,libselinux: fix i686 build
commit9df1ad5a2d8eb9a26e394530d3dbd16360de5633
authorWilga <wilga@cat3.de>
dateTue 27 Mar 2018, 19:14 (9 years ago)
parentfb1f354
pkgs/os-specific/linux/libselinux/default.nix+2
@@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
2424 # command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
2525 hardeningDisable = [ "fortify" ];
2626
27+ NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
28+
2729 postPatch = optionalString enablePython ''
2830 sed -i -e 's|\$(LIBDIR)/libsepol.a|${libsepol}/lib/libsepol.a|' src/Makefile
2931 '';
pkgs/os-specific/linux/libsepol/default.nix+1
@@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
2020 makeFlagsArray+=("MAN3DIR=$out/share/man/man3")
2121 '';
2222
23+ NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
2324
2425 passthru = { inherit se_release se_url; };
2526