mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 20:29:23 +01:00
c3cd75d10b
Don't link intermediate executables with LTO in order to speed up overall build time. Signed-off-by: Konstantin Demin <rockdrilla@gmail.com> PR-URL: https://github.com/nodejs/node/pull/47313 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Richard Lau <rlau@redhat.com>
30 lines
640 B
Python
30 lines
640 B
Python
{
|
|
'target_name': 'openssl-cli',
|
|
'type': 'executable',
|
|
'dependencies': ['openssl'],
|
|
'defines': [
|
|
'MONOLITH'
|
|
],
|
|
'includes': ['openssl.gypi'],
|
|
'sources': ['<@(openssl_cli_sources)'],
|
|
'conditions': [
|
|
['OS=="solaris"', {
|
|
'libraries': ['<@(openssl_cli_libraries_solaris)']
|
|
}, 'OS=="win"', {
|
|
'link_settings': {
|
|
'libraries': ['<@(openssl_cli_libraries_win)'],
|
|
},
|
|
}, 'OS in "linux android"', {
|
|
'link_settings': {
|
|
'libraries': [
|
|
'-ldl',
|
|
],
|
|
},
|
|
}],
|
|
# Avoid excessive LTO
|
|
['enable_lto=="true"', {
|
|
'ldflags': [ '-fno-lto' ],
|
|
}],
|
|
],
|
|
}
|