systemd: fix building with llvm

This commit is contained in:
Tristan Ross 2024-07-25 14:19:50 -07:00
parent b69c838632
commit 1a32f3f690
No known key found for this signature in database
GPG Key ID: B09C422035669AF8

View File

@ -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";