From 47a1718c4d39ebb0d9ac0148f2939ac9a4f633e7 Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 21 Dec 2015 22:09:52 -0800 Subject: [PATCH] configure: avoid default when CROSS is set to null avoids picking up defaults if CROSS is forcibly set empty as in: $ CROSS= ./configure ... BUG=1121 Change-Id: I6af91959288dede01efe3e5945698ab249eb6ec3 --- build/make/configure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/make/configure.sh b/build/make/configure.sh index 98248b0a7..9e47ae0f2 100644 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -877,7 +877,7 @@ process_common_toolchain() { case ${tgt_cc} in gcc) - CROSS=${CROSS:-arm-none-linux-gnueabi-} + CROSS=${CROSS-arm-none-linux-gnueabi-} link_with_cc=gcc setup_gnu_toolchain arch_int=${tgt_isa##armv} @@ -1135,7 +1135,7 @@ EOF CC=${CC:-${CROSS}gcc} CXX=${CXX:-${CROSS}g++} LD=${LD:-${CROSS}gcc} - CROSS=${CROSS:-g} + CROSS=${CROSS-g} ;; os2) disable_feature pic