summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-06-14 11:45:47 +0000
committerRobin Gloster <mail@glob.in>2016-06-14 11:45:47 +0000
commit06ed2353479098d6ecd4ef49f4aeb6315aee3109 (patch)
treefa8a7e0ae2a64cb3679d0b2b528df0f571f51e95
parent99cc3fa6cad876a4bddb0fb33e0835570206f4ea (diff)
downloadnixlib-06ed2353479098d6ecd4ef49f4aeb6315aee3109.tar
nixlib-06ed2353479098d6ecd4ef49f4aeb6315aee3109.tar.gz
nixlib-06ed2353479098d6ecd4ef49f4aeb6315aee3109.tar.bz2
nixlib-06ed2353479098d6ecd4ef49f4aeb6315aee3109.tar.lz
nixlib-06ed2353479098d6ecd4ef49f4aeb6315aee3109.tar.xz
nixlib-06ed2353479098d6ecd4ef49f4aeb6315aee3109.tar.zst
nixlib-06ed2353479098d6ecd4ef49f4aeb6315aee3109.zip
gcc6: disable format hardening flag
-rw-r--r--pkgs/development/compilers/gcc/6/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc/6/default.nix b/pkgs/development/compilers/gcc/6/default.nix
index 6ca0f2f59f44..5a9e615645ef 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'