This is an automated email from the ASF dual-hosted git repository.
baodi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git
The following commit(s) were added to refs/heads/master by this push:
new 91c2a15 Fix symbols conflict of OpenSSL. (#310)
91c2a15 is described below
commit 91c2a15c3f58fd7d6c938be8fe3b402d2e085ee8
Author: Baodi Shi <[email protected]>
AuthorDate: Thu Apr 6 10:54:16 2023 +0800
Fix symbols conflict of OpenSSL. (#310)
---
binding.gyp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/binding.gyp b/binding.gyp
index a79602f..91524bf 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -23,7 +23,7 @@
"target_name": "pulsar",
"cflags_cc": ["-std=gnu++11"],
"cflags!": ["-fno-exceptions"],
- "cflags_cc!": ["-fno-exceptions", "-std=gnu++14", "-std=gnu++17"],
+ "cflags_cc!": ["-fno-exceptions", "-std=gnu++14", "-std=gnu++17",
"-fvisibility=hidden"],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
],
@@ -99,6 +99,9 @@
]
}],
['OS=="linux"', {
+ "ldflags": [
+ "-Wl,--exclude-libs,ALL"
+ ],
"dependencies": [
"<!@(node -p \"require('node-addon-api').gyp\")"
],