diff options
author | James M Snell <jasnell@gmail.com> | 2021-03-09 13:29:20 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-03-19 08:18:35 -0700 |
commit | 2b710c1413735ad8b497c5d6faf399d0f8c2c577 (patch) | |
tree | e14c9a5d29cd3775ce5c3fc3722bb801f613b4f0 /configure.py | |
parent | 65e8864fa39fb51250d63212548807589cba08f3 (diff) | |
download | node-new-2b710c1413735ad8b497c5d6faf399d0f8c2c577.tar.gz |
tools: partially detect quic support in shared_openssl
If the shared openssl does not have the `OPENSSL_INFO_QUIC` define,
then it definitely does not have the QUIC apis. This is only a partially
accurate check because it does not detect if the shared openssl was
actually *built* without the OPENSSL_NO_QUIC define set.
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/37682
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 096d40a13a..bb0f8019da 100755 --- a/configure.py +++ b/configure.py @@ -38,6 +38,7 @@ import nodedownload sys.path.insert(0, 'tools') import getmoduleversion import getnapibuildversion +import getsharedopensslhasquic from gyp_node import run_gyp # parse our options @@ -1348,6 +1349,7 @@ def configure_openssl(o): variables['node_shared_openssl'] = b(options.shared_openssl) variables['openssl_is_fips'] = b(options.openssl_is_fips) variables['openssl_fips'] = '' + variables['openssl_quic'] = b(True) if options.openssl_no_asm: variables['openssl_no_asm'] = 1 @@ -1403,6 +1405,9 @@ def configure_openssl(o): if options.openssl_fips or options.openssl_fips == '': error('FIPS is not supported in this version of Node.js') + if options.shared_openssl: + variables['openssl_quic'] = b(getsharedopensslhasquic.get_has_quic(options.__dict__['shared_openssl_includes'])) + configure_library('openssl', o) |