systemd: fix building with llvm

This commit is contained in:
Tristan Ross
2024-07-30 22:09:34 -07:00
parent b69c838632
commit 1a32f3f690
@@ -70,6 +70,7 @@
, libpwquality
, qrencode
, libarchive
, llvmPackages
# the (optional) BPF feature requires bpftool, libbpf, clang and llvm-strip to
# be available during build time.
@@ -376,6 +377,9 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals withPasswordQuality [ libpwquality ]
++ lib.optionals withQrencode [ qrencode ]
++ lib.optionals withLibarchive [ libarchive ]
++ lib.optional (withBootloader && stdenv.targetPlatform.useLLVM or false) (llvmPackages.compiler-rt.override {
doFakeLibgcc = true;
})
;
mesonBuildType = "release";