From 06ed2353479098d6ecd4ef49f4aeb6315aee3109 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 14 Jun 2016 11:45:47 +0000 Subject: [PATCH] gcc6: disable format hardening flag --- pkgs/development/compilers/gcc/6/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/gcc/6/default.nix b/pkgs/development/compilers/gcc/6/default.nix index 6ca0f2f59f4..5a9e615645e 100644 --- a/pkgs/development/compilers/gcc/6/default.nix +++ b/pkgs/development/compilers/gcc/6/default.nix @@ -223,6 +223,8 @@ stdenv.mkDerivation ({ libc_dev = stdenv.cc.libc_dev; + hardeningDisable = [ "format" ]; + postPatch = if (stdenv.isGNU || (libcCross != null # e.g., building `gcc.crossDrv'