fio: add optional dependency on libaio
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 19 Apr 2016 21:38:41 +0000 (23:38 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 19 Apr 2016 21:38:41 +0000 (23:38 +0200)
fio can automatically detect and use libaio when available, so this
commit makes this optional dependency explicit.

Suggested by Charles <ckhardin@exablox.com> in bug #8851.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/fio/fio.mk

index acebb6fe70b585ff0f527b35424311d62526bc01..6c4ad6c4caf2259732f4c86b6ce19549cd95994c 100644 (file)
@@ -9,6 +9,10 @@ FIO_SITE = git://git.kernel.dk/fio.git
 FIO_LICENSE = GPLv2 + special obligations
 FIO_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_LIBAIO),y)
+FIO_DEPENDENCIES += libaio
+endif
+
 define FIO_CONFIGURE_CMDS
        (cd $(@D); ./configure --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)")
 endef