package/collectd: fix build with luajit
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 22 Aug 2020 13:02:43 +0000 (15:02 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 22 Aug 2020 15:52:37 +0000 (17:52 +0200)
Build with luajit has been enabled with commit
911a9bf5739d94545cc482c765f876a9ff73e304 however the build fails because
collectd does not find liblua

Fixes:
 - http://autobuild.buildroot.org/results/31302b47fb70eb442cd000f4b9f27a9e12432cc3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/collectd/collectd.mk

index 21da8fddc8c92c482bdff7fdf06a21d5ac3101cc..25ffaa7468a56f388b73d5cc66385474e3675b4b 100644 (file)
@@ -198,6 +198,9 @@ endif
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 COLLECTD_CONF_OPTS += --with-libcurl=$(STAGING_DIR)/usr
 endif
+ifeq ($(BR2_PACKAGE_LUAJIT),y)
+COLLECTD_CONF_ENV += LIBLUA_PKG_CONFIG_NAME=luajit
+endif
 ifeq ($(BR2_PACKAGE_MYSQL),y)
 COLLECTD_CONF_OPTS += --with-libmysql=$(STAGING_DIR)/usr
 endif