systemd: disable pacret hardening flag if withLibBPF (#396368)

This commit is contained in:
Arian van Putten
2025-04-15 11:37:34 +02:00
committed by GitHub

View File

@@ -336,11 +336,13 @@ stdenv.mkDerivation (finalAttrs: {
[
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111523
"trivialautovarinit"
# breaks clang -target bpf; should be fixed to filter target?
]
++ (lib.optionals withLibBPF [
# breaks clang -target bpf; should be fixed to not use
# a wrapped clang?
"zerocallusedregs"
"shadowstack"
"pacret"
]);
nativeBuildInputs =