Fix Boost 1.55 build

This commit is contained in:
Michael Raskin 2014-11-04 15:21:33 +03:00
parent 0e3a86e145
commit 18ac683bbc

View File

@ -118,8 +118,10 @@ stdenv.mkDerivation {
preConfigure = ''
NIX_LDFLAGS="$(echo $NIX_LDFLAGS | sed "s,$out,$lib,g")"
substituteInPlace tools/build/src/tools/clang-darwin.jam \
--replace '$(<[1]:D=)' "$lib/lib/\$(<[1]:D=)"
if test -f tools/build/src/tools/clang-darwin.jam ; then
substituteInPlace tools/build/src/tools/clang-darwin.jam \
--replace '$(<[1]:D=)' "$lib/lib/\$(<[1]:D=)";
fi;
'';
NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.isDarwin