llvm-3.8: Fix lldb build failure due to insecure format use.
commit464888c28cfcf2bc46993eeb3a759bd959460313
authorWill Dietz <w@wdtz.org>
dateTue 30 Aug 2016, 14:22 (10 years ago)
parent509733a
pkgs/development/compilers/llvm/3.8/lldb.nix+2−5
@@ -25,12 +25,9 @@ stdenv.mkDerivation {
2525 cp "$(ls -d llvm-*.src)/lib/Support/regex_impl.h" "$srcDir/tools/lib/Support/"
2626 '';
2727
28− buildInputs = [ cmake python which swig ncurses zlib libedit ];
28+ buildInputs = [ cmake python which swig ncurses zlib libedit llvm ];
2929
30− preConfigure = ''
31− export CXXFLAGS="-pthread"
32− export LDFLAGS="-ldl"
33− '';
30+ hardeningDisable = [ "format" ];
3431
3532 cmakeFlags = [
3633 "-DCMAKE_BUILD_TYPE=Release"