Skip to content

Statically linked libraries #8

@alshdavid

Description

@alshdavid

Hi all, can you produce static libraries to allow for statically linking libnode within the consumer (libnode.a)?

I'm creating Rust bindings for libnode however I want to vendor a statically linkable libnode within my crate so it doesn't require the dynamic library being manually installed/available on the system by the user.

It's okay for system dependencies that the Nodejs CLI links dynamically to remain dynamic (like openssl) - I don't need them to be statically included as I am essentially trying to recreate the CLI.

I have tried forking this repo and building libnode with the --fully-static --enable-static arguments - but I am not very experienced with static libraries (or C libraries in general) so I haven't had any success.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions