From c4c0e2e2ecc3b6dc4b551332060a853fbf20708c Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Fri, 14 Jul 2023 08:57:39 +0200 Subject: gnat11: avoid the new "fortify3" hardening It broke build: https://hydra.nixos.org/build/227264335 Motivation: coreboot-toolchain.* depend on gnat11. It's just a hack-fix. gnat12 seems OK, just as other languages on 11, at least those built on Hydra. /cc PR #224822 which enabled the flag. --- pkgs/development/compilers/gcc/11/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/development/compilers/gcc/11/default.nix') diff --git a/pkgs/development/compilers/gcc/11/default.nix b/pkgs/development/compilers/gcc/11/default.nix index ca4540b8c71..362bdf01939 100644 --- a/pkgs/development/compilers/gcc/11/default.nix +++ b/pkgs/development/compilers/gcc/11/default.nix @@ -176,7 +176,8 @@ lib.pipe (stdenv.mkDerivation ({ libc_dev = stdenv.cc.libc_dev; - hardeningDisable = [ "format" "pie" ]; + hardeningDisable = [ "format" "pie" ] + ++ optional langAda "fortify3"; postPatch = '' configureScripts=$(find . -name configure) -- cgit 1.4.1