cc-wrapper: Fix for cross-compiling

Fixes #5949

Suggested by @ambrop72
This commit is contained in:
Shea Levy
2015-01-25 23:29:06 -05:00
parent f326b7995c
commit 9bccb95a82
2 changed files with 10 additions and 2 deletions
+7 -2
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