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
Hi all, can you produce static libraries to allow for statically linking libnode within the consumer (
libnode.a)?I'm creating Rust bindings for
libnodehowever 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-staticarguments - but I am not very experienced with static libraries (or C libraries in general) so I haven't had any success.References