Merge pull request #18864 from acowley/mlton-clang

mlton: fix build with clang (darwin)
This commit is contained in:
Joachim F 2016-09-23 20:18:24 +02:00 committed by GitHub
commit a8d4f747a4

View File

@ -61,6 +61,8 @@ stdenv.mkDerivation rec {
done
substituteInPlace $(pwd)/../${usr_prefix}/bin/mlton --replace '/${usr_prefix}/lib/mlton' $(pwd)/../${usr_prefix}/lib/mlton
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
sed -i "s_ patch -s -p0 <gdtoa.hide-public-fns.patch_ patch -s -p0 <gdtoa.hide-public-fns.patch\n\tsed -i 's|printf(emptyfmt|printf(\"\"|g' ./gdtoa/arithchk.c_" ./runtime/Makefile
'';
preBuild = ''