From 062c8530c219f4f0aac8a3e8f353569e13234a58 Mon Sep 17 00:00:00 2001 From: Marc Andre Tanner Date: Sat, 21 Nov 2009 21:58:08 +0100 Subject: [PATCH] Set $CC in common code (sources/include.sh) Signed-off-by: Marc Andre Tanner --- build.sh | 8 -------- sources/include.sh | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/build.sh b/build.sh index a30bac3..e47bf25 100755 --- a/build.sh +++ b/build.sh @@ -6,14 +6,6 @@ source sources/include.sh || exit 1 ./download.sh || exit 1 -if [ -z "$CC" ]; then - if [ -z "$CROSS" ]; then - export CC="gcc" - else - export CC="${CROSS}gcc" - fi -fi - [ -z $(which "$CC") ] && echo "Compiler '$CC' not found in \$PATH." && exit 1 echo "=== Building" diff --git a/sources/include.sh b/sources/include.sh index be6efee..c8ab1aa 100755 --- a/sources/include.sh +++ b/sources/include.sh @@ -58,6 +58,7 @@ then fi STRIP="${CROSS}strip" +[ -z "$CC" ] && export CC="${CROSS}gcc" umask 022 -- 2.11.4.GIT