Skip to content

Building NodeJS with a shared v8 #3302

Closed as not planned
Closed as not planned

Description

@fmoraes74

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.

Activity

  1. gireeshpunathil commented on Oct 8, 2021

    @gireeshpunathil
    Member

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

  2. addaleax commented on Oct 8, 2021

    @addaleax
    Member

    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.

  3. richardlau commented on Oct 8, 2021

    @richardlau
    Member

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

  4. alekseibutiaev commented on Feb 10, 2022

    @alekseibutiaev

    I think if nodejs provide a libv8.so for some external project it is will good solution

  5. github-actions commented on May 9, 2024

    @github-actions

    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.

  6. github-actions commented on Jun 9, 2024

    @github-actions

    It seems there has been no activity on this issue for a while, and it is being closed. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions