Porting LibPBC to Native Client?
I want to develop an extension using the PBC library. The amount and quality of documentation on doing this for Firefox's XPCOM was rather obscure, and Native Client seems interesting to experiment with.
In order to port the library, I changed the config and Makefile according to this tutorial. It does (obviously) require to remove dependencies on shared libraries. I thus need to also build the GMP library wit开发者_StackOverflowh the nacl-toolchain and then reference from pbc.
I'm not familiar with libPBC but I know gmp can be built for nacl. If you set your CC environment variable to the nacl compiler and run configure with --host=none-pc-nacl you will get a generic C-only build of gmp which doesn't use the assembly code (gmp's assembly code is not nacl-safe).
精彩评论