boost: fix cross-compile support

This commit is contained in:
oxalica 2021-02-27 11:06:21 +08:00 committed by Dmitry Kalinkin
parent 9dd7348c04
commit 74e20c9b27

View File

@ -150,6 +150,9 @@ stdenv.mkDerivation {
cat << EOF >> user-config.jam
using gcc : cross : ${stdenv.cc.targetPrefix}c++ ;
EOF
# Build b2 with buildPlatform CC/CXX.
sed '2i export CC=$CC_FOR_BUILD; export CXX=$CXX_FOR_BUILD' \
-i ./tools/build/src/engine/build.sh
'';
NIX_CFLAGS_LINK = lib.optionalString stdenv.isDarwin