mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 22:02:33 +00:00

This pull request updates the OpenSSL version that is statically linked with Node.js from OpenSSl 1.1.1 to quictls OpenSSL 3.0.0+quic. This pull request will replace the OpenSSL version that is currently in the deps directory and when performing a normal build OpenSSL 3.0+quic will be statically linked to the Node.js executable. We will still be able to dynamically link to OpenSSL 1.1.1 and we have a CI job which dynamically links to OpenSSL 1.1.1 which is run for every pull request to make sure that we maintain backward compatibility. PR-URL: https://github.com/nodejs/node/pull/38512 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
59 lines
1.6 KiB
Cheetah
59 lines
1.6 KiB
Cheetah
{
|
|
'variables': {
|
|
'openssl_sources': [
|
|
%%- foreach $src (@libfips_srcs) {
|
|
$OUT .= " 'openssl/$src',\n";
|
|
} -%%
|
|
],
|
|
'openssl_sources_%%-$arch-%%': [
|
|
%%- foreach $src (@generated_srcs) {
|
|
$OUT .= " './config/archs/$arch/$asm/$src',\n";
|
|
} -%%
|
|
],
|
|
'openssl_defines_%%-$arch-%%': [
|
|
%%- foreach $define (@{$config{defines}}) {
|
|
$OUT .= " '$define',\n";
|
|
}
|
|
foreach $define (@lib_cppflags) {
|
|
$OUT .= " '$define',\n";
|
|
}
|
|
foreach $define (@{$target{defines}}) {
|
|
$OUT .= " '$define',\n";
|
|
}
|
|
foreach $define (@{libfips_defines}) {
|
|
$OUT .= " '$define',\n";
|
|
}
|
|
foreach $define (@{$config{libfips_defines}}) {
|
|
$OUT .= " '$define',\n";
|
|
} -%% ],
|
|
'openssl_cflags_%%-$arch-%%': [
|
|
%%- foreach $cflag (@cflags) {
|
|
$OUT .= " '$cflag',\n";
|
|
} -%% ],
|
|
'openssl_ex_libs_%%-$arch-%%': [
|
|
'%%-$target{ex_libs}-%%',
|
|
],
|
|
'linker_script': '%%-$linker_script-%%'
|
|
},
|
|
'include_dirs': [
|
|
'.',
|
|
'./include',
|
|
'./crypto',
|
|
'./crypto/include/internal',
|
|
'./providers/common/include',
|
|
],
|
|
'defines': ['<@(openssl_defines_%%-$arch-%%)'],
|
|
%%- if (!$is_win) {
|
|
$OUT .= " 'cflags': ['<@(openssl_cflags_$arch)'],\n";
|
|
$OUT .= " 'libraries': ['<@(openssl_ex_libs_$arch)'],\n";
|
|
if ($linker_script ne "") {
|
|
$OUT .= " 'ldflags': ['-Wl,--version-script=<@(linker_script)'],";
|
|
}
|
|
} -%%
|
|
'sources': ['<@(openssl_sources)', '<@(openssl_sources_%%-$arch-%%)'],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': ['./include', '.'],
|
|
'defines': ['<@(openssl_defines_%%-$arch-%%)'],
|
|
},
|
|
}
|