summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure4
-rw-r--r--examples/Makefile4
-rw-r--r--src/Makefile4
-rw-r--r--test/Makefile4
4 files changed, 16 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
diff --git a/examples/Makefile b/examples/Makefile
index 5896b45..28456a9 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -4,6 +4,10 @@ override CFLAGS += -Wall -D_GNU_SOURCE -L../src/ -I../src/include/
include ../Makefile.quiet
+ifneq ($(MAKECMDGOALS),clean)
+include ../config-host.mak
+endif
+
all_targets += io_uring-test io_uring-cp link-cp ucontext-cp
all: $(all_targets)
diff --git a/src/Makefile b/src/Makefile
index 07adf6e..88ca597 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -22,6 +22,10 @@ endif
include ../Makefile.quiet
+ifneq ($(MAKECMDGOALS),clean)
+include ../config-host.mak
+endif
+
all: $(all_targets)
liburing_srcs := setup.c queue.c syscall.c register.c
diff --git a/test/Makefile b/test/Makefile
index 38217ab..1710c8b 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -22,6 +22,10 @@ all_targets += poll poll-cancel ring-leak fsync io_uring_setup io_uring_register
include ../Makefile.quiet
+ifneq ($(MAKECMDGOALS),clean)
+include ../config-host.mak
+endif
+
all: $(all_targets)
%: %.c