checkpolicy: fixup includes with glibc-2.26
This commit is contained in:
parent
54c14e2fa3
commit
d51f9b364e
|
@ -10,16 +10,17 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1m5wjm43lzp6bld8higsvdm2dkddydihhwv9qw2w9r4dm0largcv";
|
||||
};
|
||||
|
||||
# Don't build tests
|
||||
postPatch = ''
|
||||
sed '/-C test/d' -i Makefile
|
||||
sed '1i#include <ctype.h>' -i checkpolicy.c
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ bison flex ];
|
||||
buildInputs = [ libsepol ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
|
||||
|
||||
# Don't build tests
|
||||
postPatch = ''
|
||||
sed -i '/-C test/d' Makefile
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray+=("LEX=flex")
|
||||
makeFlagsArray+=("LIBDIR=${libsepol}/lib")
|
||||
|
|
Loading…
Reference in a new issue