Android C FFI / libtool

shtps via Gforth discussion and announcements <gforth-mXXj517/[email protected]> Sun, 11 Feb 2024 20:30:20 +0000
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <LP9x8O81ZE3jt7SRPJJzXulvAIWxVRWhhRQBt9qBA68nY6p2fAgEKEKCUZ3_1d_t5o_dYTz66atqnMwovbfu76zzk9EvSPQrQHBIdZ1PsNo=@protonmail.com>
Hi,

Out of curiosity I'm porting a small Forth application to Gforth on Android and I'm wondering how the C FFI is handled and if it's at all expected to work on Android. I've tried running the following but I get "libtool compile failed". It works just fine on my desktop installation.

c-library mylib-lib
\c int test() { return 1; }
c-function test test -- n
end-c-library

test .

Is libtool expected to work or do I need to set it up somehow?

Thanks in advance.