diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-15 17:13:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-15 17:13:45 +0000 |
commit | e2d84e38284aeb9d522a7e935554340ddf0e4a6f (patch) | |
tree | 5a7444ee5f2af59431481999f729676090b1e0f3 /net-libs/nodejs/files | |
parent | 519e4d5d99fc43d5c9a038098c029dc4ef9d6792 (diff) |
gentoo resync : 15.11.2017
Diffstat (limited to 'net-libs/nodejs/files')
-rw-r--r-- | net-libs/nodejs/files/nodejs-9.2.0-shared-nghttp2.patch | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/net-libs/nodejs/files/nodejs-9.2.0-shared-nghttp2.patch b/net-libs/nodejs/files/nodejs-9.2.0-shared-nghttp2.patch new file mode 100644 index 000000000000..a145c0c71169 --- /dev/null +++ b/net-libs/nodejs/files/nodejs-9.2.0-shared-nghttp2.patch @@ -0,0 +1,89 @@ +--- a/configure ++++ b/configure +@@ -182,6 +182,27 @@ + dest='shared_http_parser_libpath', + help='a directory to search for the shared http_parser DLL') + ++shared_optgroup.add_option('--shared-nghttp2', ++ action='store_true', ++ dest='shared_nghttp2', ++ help='link to a shared nghttp2 DLL instead of static linking') ++ ++shared_optgroup.add_option('--shared-nghttp2-includes', ++ action='store', ++ dest='shared_nghttp2_includes', ++ help='directory containing nghttp2 header files') ++ ++shared_optgroup.add_option('--shared-nghttp2-libname', ++ action='store', ++ dest='shared_nghttp2_libname', ++ default='nghttp2', ++ help='alternative lib name to link to [default: %default]') ++ ++shared_optgroup.add_option('--shared-nghttp2-libpath', ++ action='store', ++ dest='shared_nghttp2_libpath', ++ help='a directory to search for the shared nghttp2 DLL') ++ + shared_optgroup.add_option('--shared-libuv', + action='store_true', + dest='shared_libuv', +@@ -1360,6 +1381,7 @@ + configure_node(output) + configure_library('zlib', output) + configure_library('http_parser', output) ++configure_library('nghttp2', output) + configure_library('libuv', output) + configure_library('libcares', output) + # stay backwards compatible with shared cares builds +--- a/node.gyp ++++ b/node.gyp +@@ -14,6 +14,7 @@ + 'node_module_version%': '', + 'node_shared_zlib%': 'false', + 'node_shared_http_parser%': 'false', ++ 'node_shared_nghttp2%': 'false', + 'node_shared_cares%': 'false', + 'node_shared_libuv%': 'false', + 'node_use_openssl%': 'true', +@@ -151,8 +152,15 @@ + 'type': '<(node_target_type)', + + 'dependencies': [ +- 'node_js2c#host', +- 'deps/nghttp2/nghttp2.gyp:nghttp2' ++ 'node_js2c#host' ++ ], ++ ++ 'conditions': [ ++ [ 'node_shared_nghttp2=="false"', { ++ 'dependencies': [ ++ 'deps/nghttp2/nghttp2.gyp:nghttp2' ++ ] ++ }] + ], + + 'includes': [ +@@ -180,8 +180,7 @@ + 'include_dirs': [ + 'src', + 'tools/msvs/genfiles', +- '<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h +- 'deps/nghttp2/lib/includes' ++ '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h + ], + + 'sources': [ +--- a/node.gypi ++++ b/node.gypi +@@ -251,6 +251,10 @@ + 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ], + }], + ++ [ 'node_shared_nghttp2=="false"', { ++ 'dependencies': [ 'deps/nghttp2/nghttp2.gyp:nghttp2' ], ++ }], ++ + [ 'node_shared_cares=="false"', { + 'dependencies': [ 'deps/cares/cares.gyp:cares' ], + }], |