I've actually packaged this in Ubuntu now, but I hit a couple of unexpected issues:
1) js-config --libs doesn't return the right linker flags (-lmozjs)
2) Even though it builds an ABI versioned so, the soname of the resulting ELF binary is still unversioned (ie, libmozjs185.so rather than libmozjs185.so.1.0). This would mean we couldn't support multiple ABI's, which would make it difficult to do an ABI transition in the future.
I have patches for both of these problems, although the patch for 2) is a bit hacky.
I've actually packaged this in Ubuntu now, but I hit a couple of unexpected issues:
1) js-config --libs doesn't return the right linker flags (-lmozjs)
2) Even though it builds an ABI versioned so, the soname of the resulting ELF binary is still unversioned (ie, libmozjs185.so rather than libmozjs185. so.1.0) . This would mean we couldn't support multiple ABI's, which would make it difficult to do an ABI transition in the future.
I have patches for both of these problems, although the patch for 2) is a bit hacky.