From: Stefan Hajnoczi Date: Thu, 6 Mar 2014 17:41:58 +0000 (+0100) Subject: Honor ./configure --cc= option X-Git-Tag: fio-2.1.7~19 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=47986339e372697d9a79d48de21eb0f311386bf0;ds=sidebyside 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 --- 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