OpenSSL にリンクする必要がある C++ で記述された Node 拡張機能があります。Node には、 OpenSSL を使用して実装されたTLS モジュールがあることもわかります。binding.gyp ファイル内の OpenSSL の Node コピーに対して拡張機能をリンクできますか?
1 に答える
1
It turns out that this exact scenario is covered in the node-gyp documentation. Basically, there are directories with OpenSSL headers that are included with the Node.js source distribution and that can be added to the node-gyp include path list. On Linux, actual linking is unnecessary because the symbols will be made available to the extension by the Node runtime when it is loaded.
On Windows, this does not work, and the extension needs to explicitly compile and link against an external copy of OpenSSL that is installed separately.
于 2015-10-26T17:16:02.170 に答える