summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2020-10-27 22:31:21 -0400
committerJens Axboe <axboe@kernel.dk>2020-10-28 16:32:16 -0600
commit1cf969dfcba797a02d74540965677b92d3884cfa (patch)
treec84b1a7083b0d9f746714c661e3c506bf27f218d /examples
parenta1ab3bd0ad5841fd9a548defc744625019ebbcf3 (diff)
downloadliburing-1cf969dfcba797a02d74540965677b92d3884cfa.tar.gz
liburing-1cf969dfcba797a02d74540965677b92d3884cfa.tar.bz2
examples: disable ucontext-cp if ucontext.h is not available
The header file `ucontext.h` is not available on musl based distros. The example `ucontext-cp` is not built if `configure` fails to locate the header. Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 0eec627..60c1b71 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -10,7 +10,11 @@ ifneq ($(MAKECMDGOALS),clean)
include ../config-host.mak
endif
-all_targets += io_uring-test io_uring-cp link-cp ucontext-cp
+all_targets += io_uring-test io_uring-cp link-cp
+
+ifdef CONFIG_HAVE_UCONTEXT
+all_targets += ucontext-cp
+endif
all: $(all_targets)