Skip to content

How to build native addon against their own version of OpenSSL - Ignoring Node.js shipped OpenSSL #1724

Closed
@JCMais

Description

@JCMais
  • Node.js Version: >= v10
  • OS: all
  • Scope (install, code, runtime, meta, other?): native addon

I've opened a similar issue on node-gyp (nodejs/node-gyp#1559), and there are more information there, but since there was no solution posted, I'm also opening another issue here to have more chances of a definitive solution / guide.

Currently building a native addon with a version of OpenSSL independent of the one shipped with Node.js is very hard, at least to me with basic knowledge on linking / libraries in C++ and / or using gyp files.

Looks like the shipped symbols always take precedence, no matter what I do, which causes all kinds of weird errors and segmentation faults.

There are many other issues about this topic, most are closed without a real solution, and the following wiki page is outdated: https://github.com/nodejs/node-gyp/wiki/Linking-to-OpenSSL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions