diff --git a/pkgs/os-specific/linux/zfs/default.nix b/pkgs/os-specific/linux/zfs/default.nix index eec2d1ad04abc..a56c92044a5f0 100644 --- a/pkgs/os-specific/linux/zfs/default.nix +++ b/pkgs/os-specific/linux/zfs/default.nix @@ -109,6 +109,8 @@ let # for zdb to get the rpath to libgcc_s, needed for pthread_cancel to work NIX_CFLAGS_LINK = "-lgcc_s"; + NIX_CFLAGS_COMPILE = [ "-Wno-error=attribute-warning" ]; + hardeningDisable = [ "fortify" "stackprotector" "pic" ]; configureFlags = [