Merge pull request #330008 from ExpidusOS/fix/pkgsllvm/systemd

systemd: fix building with llvm
This commit is contained in:
Florian Klink 2024-08-01 14:23:05 +03:00 committed by GitHub
commit 5d05a0c4e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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