This is an automated email from the ASF dual-hosted git repository. baodi pushed a commit to branch branch-1.8 in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git
commit ac4ddc926998689bacad78167fb54e6b5810c890 Author: Baodi Shi <[email protected]> AuthorDate: Thu Apr 6 10:54:16 2023 +0800 Fix symbols conflict of OpenSSL. (#310) (cherry picked from commit 91c2a15c3f58fd7d6c938be8fe3b402d2e085ee8) --- binding.gyp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/binding.gyp b/binding.gyp index 5a412bd..24309d6 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\")", ], @@ -85,6 +85,9 @@ ] }], ['OS=="linux"', { + "ldflags": [ + "-Wl,--exclude-libs,ALL" + ], "dependencies": [ "<!@(node -p \"require('node-addon-api').gyp\")" ],
