Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,19 @@
'defines': [
'CURL_STATICLIB',
],
# Do not re-export symbols coming from the statically linked
# archives (libcurl, OpenSSL, nghttp2, ...). Without this the
# addon exports its bundled OpenSSL symbols, and the dynamic
# linker resolves its *internal* calls to whatever libcrypto
# is already loaded in the process (e.g. pulled in by Electron
# via libcups / libgssapi_krb5). On distros shipping a
# different OpenSSL major version (Fedora 45: OpenSSL 4) the
# bundled OpenSSL 3.x ends up calling into OpenSSL 4 and
# segfaults in conf_ssl_name_find(). Hiding the symbols makes
# every reference bind to the bundled copy at link time.
'ldflags': [
'-Wl,--exclude-libs,ALL',
],
'conditions': [
['curl_libraries==""', {
'libraries': [
Expand Down