From ca490a62906fa566e1f30504cd0f29d04ee48c4a Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 11 Jun 2017 11:34:17 +0200 Subject: [PATCH] gdb: disable format warnings Fixes #26145 --- pkgs/development/tools/misc/gdb/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index e6dcc3057d1d..1e9cf910857c 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -46,6 +46,8 @@ stdenv.mkDerivation rec { # darwin build fails with format hardening since v7.12 hardeningDisable = stdenv.lib.optionals stdenv.isDarwin [ "format" ]; + NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral"; + configureFlags = with stdenv.lib; [ "--with-gmp=${gmp.dev}" "--with-mpfr=${mpfr.dev}" "--with-system-readline" "--with-system-zlib" "--with-expat" "--with-libexpat-prefix=${expat.dev}"