summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-23 21:34:03 -0700
committerJens Axboe <axboe@kernel.dk>2019-12-23 21:34:03 -0700
commit4332433754e872d54d612b35f329adfe5c70a969 (patch)
tree569c24b1e3bd191d84bd1aae74ed19f03ad0e974 /configure
parent32fcace197a93b060001c90dbc0936bfa38ec294 (diff)
downloadliburing-4332433754e872d54d612b35f329adfe5c70a969.tar.gz
liburing-4332433754e872d54d612b35f329adfe5c70a969.tar.bz2
configure: allow to set host CC
Use ./configure --cc=whatever to set the compiler. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index babbae1..7393cb4 100755
--- a/configure
+++ b/configure
@@ -26,6 +26,8 @@ for opt do
;;
--datadir=*) datadir="$optarg"
;;
+ --cc=*) cc="$optarg"
+ ;;
*)
echo "ERROR: unkown option $opt"
echo "Try '$0 --help' for more information"
@@ -215,3 +217,5 @@ fi
if test "$__kernel_timespec" = "yes"; then
output_sym "CONFIG_HAVE_KERNEL_TIMESPEC"
fi
+
+echo "CC=$cc" >> $config_host_mak