-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gyp help: Linking to built-in node openssl (and knowing when to) #254
Comments
It should mostly Just Work, really. If it isn't working, please post code and build output.
I think I covered that in the previous section. I'm not sure what you mean by "hitting those symbols and dying" - are you getting symbol clashes when building or loading the add-on? All other things being equal, linking to your local copy of openssl will override any symbols that the node binary exports. If that doesn't work for you for some reason, again, please post code and build output. :-) |
@bnoordhuis Regarding "2. Check the node version by shelling out in your binding.gyp. Not foolproof when cross-compiling." don't you think we should have a |
@saper Just a variable with the node version would not be enough, I think. It would not indicate if e.g. you're cross-compiling to electron. |
@bnoordhuis I was thinking like |
That exists, if I understand you correctly: |
A few questions with the new symbol exports for openssl on windows in 6.3.
Related issue in my project
Root gyp file
Internal gyp file
Relevant issue on core
I'm struggling with getting things to link properly. We currently link to our own openssl, but in windows this dies with 6.3. I've tried following the directions here (skipping the windows bit since those symbols are now exported), but it dies on all platforms with those changes.
So a few questions.
node_module_version
is the same in 6.2 and 6.3, so that's not sufficient. I've been looking around to see what variables node-gyp provides, but I haven't found anything yet. Additionally, it seems like maybe I can link against the built in for older versions of node on not windows, so I'm not sure how I would structure that conditional. We also have to support electron, which doesn't export the symbols, so we definitely have to at least maintain the ability to use our local.Sorry for the small wall of text here, but I've been banging my head against this for a while, and I'm completely stumped.
The text was updated successfully, but these errors were encountered: