Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2020-03-26 06:14:59 +0300
committerGabriel Schulhof <gabriel.schulhof@intel.com>2020-03-30 08:55:20 +0300
commit67d5c907d2dcf338306eaa74b910096b2a686fc4 (patch)
treef57a9bc5448235fdc979842e52a7eace8b087f38 /node.gyp
parentc2637847b36db987123e6c10d46b4abb2a078667 (diff)
src: unify Linux and FreeBSD large pages implem
dl_iterate_phdr(3) is also available for FreeBSD. This change adds the same trimming code for the start and end of the .text section as on Linux, making it work on FreeBSD, and removing the need for the additional FreeBSD-specific check. Manually tested on * https://www.osboxes.org/freebsd/#freebsd-12-1-vbox * https://www.osboxes.org/freebsd/#freebsd-11-vbox * test-digitalocean-freebsd11-x64-2 Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> PR-URL: https://github.com/nodejs/node/pull/32534 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.gyp b/node.gyp
index c09b4b481c5..cb1d9925276 100644
--- a/node.gyp
+++ b/node.gyp
@@ -323,7 +323,7 @@
'target_name': 'node_text_start',
'type': 'none',
'conditions': [
- [ 'OS=="linux" and '
+ [ 'OS in "linux freebsd" and '
'target_arch=="x64"', {
'type': 'static_library',
'sources': [
@@ -512,7 +512,7 @@
'src/node_snapshot_stub.cc'
],
}],
- [ 'OS=="linux" and '
+ [ 'OS in "linux freebsd" and '
'target_arch=="x64"', {
'dependencies': [ 'node_text_start' ],
'ldflags+': [