From 464888c28cfcf2bc46993eeb3a759bd959460313 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 30 Aug 2016 14:22:53 -0500 Subject: [PATCH] llvm-3.8: Fix lldb build failure due to insecure format use. --- pkgs/development/compilers/llvm/3.8/lldb.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/llvm/3.8/lldb.nix b/pkgs/development/compilers/llvm/3.8/lldb.nix index ca8a74c28bb6..8a09043051a7 100644 --- a/pkgs/development/compilers/llvm/3.8/lldb.nix +++ b/pkgs/development/compilers/llvm/3.8/lldb.nix @@ -25,12 +25,9 @@ stdenv.mkDerivation { cp "$(ls -d llvm-*.src)/lib/Support/regex_impl.h" "$srcDir/tools/lib/Support/" ''; - buildInputs = [ cmake python which swig ncurses zlib libedit ]; + buildInputs = [ cmake python which swig ncurses zlib libedit llvm ]; - preConfigure = '' - export CXXFLAGS="-pthread" - export LDFLAGS="-ldl" - ''; + hardeningDisable = [ "format" ]; cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release"