mirror of
https://github.com/nodejs/node.git
synced 2024-11-22 11:12:18 +00:00
build: add checks for openssl configure options
Currently it is possible to configure using --without-ssl and --shared-openssl/--openssl-no-asm/openssl-fips without an error occuring. The commit add check for these combinations: $ ./configure --without-ssl --shared-openssl Error: --without-ssl is incompatible with --shared-openssl $ ./configure --without-ssl --openssl-no-asm Error: --without-ssl is incompatible with --openssl-no-asm $ ./configure --without-ssl --openssl-fips=dummy Error: --without-ssl is incompatible with --openssl-fips PR-URL: https://github.com/nodejs/node/pull/12175 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
b3db91710b
commit
1f74b9fc35
9
configure
vendored
9
configure
vendored
@ -977,6 +977,15 @@ def configure_openssl(o):
|
||||
|
||||
|
||||
if options.without_ssl:
|
||||
def without_ssl_error(option):
|
||||
print('Error: --without-ssl is incompatible with %s' % option)
|
||||
exit(1)
|
||||
if options.shared_openssl:
|
||||
without_ssl_error('--shared-openssl')
|
||||
if options.openssl_no_asm:
|
||||
without_ssl_error('--openssl-no-asm')
|
||||
if options.openssl_fips:
|
||||
without_ssl_error('--openssl-fips')
|
||||
return
|
||||
configure_library('openssl', o)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user