kitty: disable fortify3 hardening flag

This commit is contained in:
Theodore Ni 2023-07-12 20:38:24 -07:00
parent f3466e8ec1
commit be0667a60b
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -94,8 +94,13 @@ buildPythonApplication rec {
./disable-test_ssh_bootstrap_with_different_launchers.patch
];
# Causes build failure due to warning
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
hardeningDisable = [
# causes redefinition of _FORTIFY_SOURCE
"fortify3"
] ++ lib.optionals stdenv.cc.isClang [
# Causes build failure due to warning
"strictoverflow"
];
CGO_ENABLED = 0;
GOFLAGS = "-trimpath";