t/io_uring: link with libaio when necessary
authorEric Sandeen <esandeen@redhat.com>
Tue, 25 Jan 2022 18:57:39 +0000 (12:57 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 26 Jan 2022 20:11:56 +0000 (13:11 -0700)
When CONFIG_LIBAIO is enabled, we need t/io_uring to link with it.
(libaio_LIBS only affects the aio engine, AFAICT.)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile

index 5d17bcab906591ff121d3675d795ecd2be4695e6..76eb0d7d5dbbe4233c12ea8d4fdf39e98be17842 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,7 @@ endif
 ifdef CONFIG_LIBAIO
   libaio_SRCS = engines/libaio.c
   cmdprio_SRCS = engines/cmdprio.c
+  LIBS += -laio
   libaio_LIBS = -laio
   ENGINES += libaio
 endif