mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
libsepol: fix static build
This commit is contained in:
parent
e3ad419b87
commit
b7a9718783
@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0ygb6dh5lng91xs6xiqf5v0nxa68qmjc787p0s5h9w89364f2yjv";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isStatic ''
|
||||
substituteInPlace src/Makefile --replace 'all: $(LIBA) $(LIBSO)' 'all: $(LIBA)'
|
||||
sed -i $'/^\t.*LIBSO/d' src/Makefile
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ flex ];
|
||||
|
||||
makeFlags = [
|
||||
|
Loading…
Reference in New Issue
Block a user