Merge pull request #330239 from ExpidusOS/fix/pkgsllvm/libselinux

libselinux: fix version script with lld 17+
This commit is contained in:
Tristan Ross
2024-07-31 23:42:43 -07:00
committed by GitHub
@@ -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";
})