开发者

Porting LibPBC to Native Client?

开发者 https://www.devze.com 2023-04-12 03:40 出处:网络
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 w

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号