moarvm: enable optional support for libffi
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 23 Nov 2016 14:39:11 +0000 (14:39 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 25 Nov 2016 21:52:19 +0000 (22:52 +0100)
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/moarvm/moarvm.mk

index 80bd19c92d5c9d532e47b97a42545c91bca52ea6..d09117471fc3c8c6ca03ca2d3ea5c030b81856bc 100644 (file)
@@ -25,6 +25,11 @@ MOARVM_CONF_OPTS = \
        --has-libtommath \
        --has-libatomic
 
+ifeq ($(BR2_PACKAGE_LIBFFI),y)
+MOARVM_CONF_OPTS += --has-libffi
+MOARVM_DEPENDENCIES += libffi
+endif
+
 ifeq ($(BR2_ENDIAN),"BIG")
 MOARVM_CONF_OPTS += --big-endian
 endif