libsepol,libselinux: fix i686 build

This commit is contained in:
Wilga 2018-03-27 19:14:31 +02:00
parent fb1f35424e
commit 9df1ad5a2d
2 changed files with 3 additions and 0 deletions

View file

@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
# command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
hardeningDisable = [ "fortify" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
postPatch = optionalString enablePython ''
sed -i -e 's|\$(LIBDIR)/libsepol.a|${libsepol}/lib/libsepol.a|' src/Makefile
'';

View file

@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
makeFlagsArray+=("MAN3DIR=$out/share/man/man3")
'';
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
passthru = { inherit se_release se_url; };