1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge branch 'gridaphobe' into staging

fix cc-wrapper for cross-compilation
This commit is contained in:
Shea Levy 2015-01-28 13:47:47 -05:00
commit cfb29ab882
2 changed files with 10 additions and 2 deletions

View file

@ -34,5 +34,10 @@ if [ -n "@coreutils@" ]; then
addToSearchPath PATH @coreutils@/bin
fi
export CC=@real_cc@
export CXX=@real_cxx@
if [ -z "$crossConfig" ]; then
export CC=@real_cc@
export CXX=@real_cxx@
else
export BUILD_CC=@real_cc@
export BUILD_CXX=@real_cxx@
fi

View file

@ -85,3 +85,6 @@ if test "$NIX_NO_SELF_RPATH" != "1"; then
export NIX_CROSS_LDFLAGS="-rpath $out/lib64 -rpath-link $out/lib $NIX_CROSS_LDFLAGS"
fi
fi
export CC=${crossConfig}-gcc
export CXX=${crossConfig}-g++