libselinux: fix version script with lld 17+

This commit is contained in:
Tristan Ross 2024-07-26 11:26:38 -07:00
parent d7136b1c84
commit 9c6f292f41
No known key found for this signature in database
GPG Key ID: B09C422035669AF8

View File

@ -8,7 +8,7 @@ assert enablePython -> swig != null && python3 != null;
with lib;
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
pname = "libselinux";
version = "3.6";
inherit (libsepol) se_url;
@ -96,4 +96,6 @@ stdenv.mkDerivation rec {
meta = removeAttrs libsepol.meta ["outputsToInstall"] // {
description = "SELinux core library";
};
}
} // lib.optionalAttrs (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") {
NIX_LDFLAGS = "--undefined-version";
})