From 47986339e372697d9a79d48de21eb0f311386bf0 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 6 Mar 2014 18:41:58 +0100 Subject: [PATCH] Honor ./configure --cc= option The cc variable is assigned before parsing command-line options. This effectively ignores the ./configure --cc= option. Move the cc variable assigned below option parsing. Signed-off-by: Stefan Hajnoczi Signed-off-by: Jens Axboe --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 4a8d352c..7b1d79a4 100755 --- a/configure +++ b/configure @@ -130,9 +130,6 @@ output_sym() { targetos="" cpu="" -cross_prefix=${cross_prefix-${CROSS_COMPILE}} -cc="${CC-${cross_prefix}gcc}" - # default options show_help="no" exit_val=0 @@ -175,6 +172,9 @@ if test "$show_help" = "yes" ; then exit $exit_val fi +cross_prefix=${cross_prefix-${CROSS_COMPILE}} +cc="${CC-${cross_prefix}gcc}" + if check_define __ANDROID__ ; then targetos="Android" elif check_define __linux__ ; then -- 2.25.1