pure: fixed build with gcc 4.9 (ZHF)

Reported upstream https://bitbucket.org/purelang/pure-lang/issues/37
This commit is contained in:
Pascal Wittmann 2015-07-09 13:52:26 +02:00
parent ad41a600e5
commit 03bd9a363a

View file

@ -16,6 +16,12 @@ stdenv.mkDerivation rec {
buildInputs = [ bison flex makeWrapper ];
propagatedBuildInputs = [ llvm gmp mpfr readline ];
postPatch = ''
for f in expr.cc matcher.cc printer.cc symtable.cc parserdefs.hh; do
sed -i '1i\#include <stddef.h>' $f
done
'';
configureFlags = [ "--enable-release" ];
doCheck = true;
checkPhase = ''