Building NodeJS with a shared v8
fmoraes74 opened this issue · 5 comments
It is possible to build node to use the embedded deps for v8 but built as a shared library? Seems like node always wants v8 to be built as a static library but I want it to use v8 as shared library.
@fmoraes74 is this still an issue?
./configure --help | grep shared does show up options to use many components as shared libs, but not v8. I guess the reason is that many of those components are packages as part of the OS, based on specific distributions, and v8 is not incldued in any OS.
what would be your use case? if you have a compelling reason, feel free to raise an RFE in core.
I guess the reason is that many of those components are packages as part of the OS, based on specific distributions, and v8 is not incldued in any OS.
One main reason is that Node.js also liberally applies patches against V8 and is unlikely to build or link successfully against a precompiled, unpatched version of V8.
It used to be possible a long time ago but was removed (nodejs/node#1331) due to issues with compatibility between different versions of V8 (which does not follow semantic versioning).
I think if nodejs provide a libv8.so for some external project it is will good solution
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment.
If you need further assistance or have questions, you can also search for similar issues on Stack Overflow.
Make sure to look at the README file for the most updated links.