moarvm: select libffi when building for MIPS
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 23 Nov 2016 14:39:12 +0000 (14:39 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 25 Nov 2016 21:52:55 +0000 (22:52 +0100)
Otherwise the compilation will fail like this:

./libmoar.so: undefined reference to `dcCallbackThunkEntry'

See: https://github.com/MoarVM/MoarVM/issues/222

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/moarvm/Config.in

index 3e0a1045ec385a000777dc69fb701fc1982ad253..76343d11995b3c47c10b76b8dc1d03a0ec6f87c1 100644 (file)
@@ -9,6 +9,9 @@ config BR2_PACKAGE_MOARVM
        select BR2_PACKAGE_LIBUV
        select BR2_PACKAGE_LIBTOMMATH
        select BR2_PACKAGE_LIBATOMIC_OPS
+       # dyncall does not work on MIPS; libffi needs to be used.
+       # See: https://github.com/MoarVM/MoarVM/issues/222
+       select BR2_PACKAGE_LIBFFI if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
        help
          Short for "Metamodel On A Runtime", MoarVM is a virtual machine
          built especially for Rakudo Perl 6 and the NQP Compiler Toolchain.