Skip to content

Commit

Permalink
libsepol,libselinux: fix i686 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilga committed Mar 27, 2018
1 parent fb1f354 commit 9df1ad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/os-specific/linux/libselinux/default.nix
Expand Up @@ -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
'';
Expand Down
1 change: 1 addition & 0 deletions pkgs/os-specific/linux/libsepol/default.nix
Expand Up @@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
makeFlagsArray+=("MAN3DIR=$out/share/man/man3")
'';

NIX_CFLAGS_COMPILE = [ "-Wno-error" ];

passthru = { inherit se_release se_url; };

Expand Down

0 comments on commit 9df1ad5

Please sign in to comment.