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 <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
-cross_prefix=${cross_prefix-${CROSS_COMPILE}}
-cc="${CC-${cross_prefix}gcc}"
-
# default options
show_help="no"
exit_val=0
# default options
show_help="no"
exit_val=0
+cross_prefix=${cross_prefix-${CROSS_COMPILE}}
+cc="${CC-${cross_prefix}gcc}"
+
if check_define __ANDROID__ ; then
targetos="Android"
elif check_define __linux__ ; then
if check_define __ANDROID__ ; then
targetos="Android"
elif check_define __linux__ ; then