Skip to content

Commit

Permalink
boost: fix cross-compile support
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalica authored and github-actions[bot] committed Mar 2, 2021
1 parent e74305a commit 8978e4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/libraries/boost/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8978e4b

Please sign in to comment.