strelka: fix build w/ gcc9

This commit is contained in:
Franz Pletz 2019-12-30 03:18:19 +01:00
parent 7cf1d11a3e
commit a88fc6be6d
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -14,7 +14,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ zlib python2 ]; buildInputs = [ zlib python2 ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=maybe-uninitialized" ]; NIX_CFLAGS_COMPILE = [
"-Wno-error=maybe-uninitialized"
"-Wno-error=pessimizing-move"
];
preConfigure = '' preConfigure = ''
sed -i 's|/usr/bin/env python|${python2}/bin/python|' src/python/lib/makeRunScript.py sed -i 's|/usr/bin/env python|${python2}/bin/python|' src/python/lib/makeRunScript.py