boost: fix cross-compile support
This commit is contained in:
parent
9dd7348c04
commit
74e20c9b27
@ -150,6 +150,9 @@ stdenv.mkDerivation {
|
|||||||
cat << EOF >> user-config.jam
|
cat << EOF >> user-config.jam
|
||||||
using gcc : cross : ${stdenv.cc.targetPrefix}c++ ;
|
using gcc : cross : ${stdenv.cc.targetPrefix}c++ ;
|
||||||
EOF
|
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
|
NIX_CFLAGS_LINK = lib.optionalString stdenv.isDarwin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user