Buidling phoneme as a shared library
I'm trying to build phoneme foundation as a shared library.
The approach i'm taking currently is to use ld to link the generated object files into a shared library.
gcc -shared -fPIC -o obj/libmala.so --export-dynamic obj/*.o -lpthread -ldl -lm
My problem is after launching the cvm, via an external application invoking ansiJavaMain, i get a signal 11. I traced that problem in the initialization of Class
I'm wondering if there is a specific method or linker options that are needed in order to build phoneme as a shared libary.
Should the above method work? Or is there something in phoneme that will not work as a shared library?
Thanks for any help,