summaryrefslogtreecommitdiff
path: root/node.gypi
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-08-02 11:57:02 +0100
committerRich Trott <rtrott@gmail.com>2019-08-19 21:20:18 -0700
commit0d7acfac82a20fceb7aa91c61abc18b711edba28 (patch)
tree08bab1f1ec33bc8dfa02338b0b7cf5a573250894 /node.gypi
parentea765eba2055132bfe42bd27caf970f4c169eca5 (diff)
downloadandroid-node-v8-0d7acfac82a20fceb7aa91c61abc18b711edba28.tar.gz
android-node-v8-0d7acfac82a20fceb7aa91c61abc18b711edba28.tar.bz2
android-node-v8-0d7acfac82a20fceb7aa91c61abc18b711edba28.zip
build: enable linux large pages LLVM lld linkage support
The custom linker script is compatible with GNU ld only. As such, providin a new expliciting option to redirect to a different one. lld seems unable to migrate this large section w/o segfaulting so providing only the base address anchor for now. PR-URL: https://github.com/nodejs/node/pull/28938 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'node.gypi')
-rw-r--r--node.gypi14
1 files changed, 13 insertions, 1 deletions
diff --git a/node.gypi b/node.gypi
index 5fd1d8e1d4..df10c97280 100644
--- a/node.gypi
+++ b/node.gypi
@@ -295,12 +295,24 @@
'ldflags': [ '-Wl,-z,relro',
'-Wl,-z,now' ]
}],
- [ 'OS=="linux" and target_arch=="x64" and node_use_large_pages=="true"', {
+ [ 'OS=="linux" and '
+ 'target_arch=="x64" and '
+ 'node_use_large_pages=="true" and '
+ 'node_use_large_pages_script_lld=="false"', {
'ldflags': [
'-Wl,-T',
'<!(realpath src/large_pages/ld.implicit.script)',
]
}],
+ [ 'OS=="linux" and '
+ 'target_arch=="x64" and '
+ 'node_use_large_pages=="true" and '
+ 'node_use_large_pages_script_lld=="true"', {
+ 'ldflags': [
+ '-Wl,-T',
+ '<!(realpath src/large_pages/ld.implicit.script.lld)',
+ ]
+ }],
[ 'node_use_openssl=="true"', {
'defines': [ 'HAVE_OPENSSL=1' ],
'conditions': [