aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rwxr-xr-xmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/make b/make
index f69d033..94f7d5e 100755
--- a/make
+++ b/make
@@ -16,7 +16,13 @@ fi
WD=$(pwd)
-BUILD_BUILD_CC=${BUILD_BUILD_CC:-gcc}
+if test -z "$BUILD_BUILD_CC" ; then
+ if test -n "${BUILD_TRIPLE}${BUILD_BASE}" ; then
+ BUILD_BUILD_CC="${BUILD_BASE}/${BUILD_TRIPLE}-gcc"
+ else
+ BUILD_BUILD_CC=${BUILD_BUILD_CC:-gcc}
+ fi
+fi
OUTPUT=${OUTPUT:-$WD/output}
BUILD_HOST_CC="$TRIPLE-${CROSS_CC:-gcc}"