To configure, besides the mentioned items (e.g., libffi), must "pkg install"
* pkgconf
* gmake
* boehm-gc-threaded
Must use “gmake”, “make” breaks on meta/Makefile
The first gmake produced "not found" link errors for
GC_unregister_my_thread
GC_get_suspend_signal
GC_allow_register_threads
GC_register_my_thread
So I reconfigured using
BDW_GC_LIBS=-L/usr/local/lib -lgc-threaded ./configure --prefix=/usr/local
Now the HACK:
ran into issue w/ weak-set.c (?), so I
edited config.h and changed
/* #undef HAVE_GC_MOVE_DISAPPEARING_LINK */
to
#define HAVE_GC_MOVE_DISAPPEARING_LINK 1