Skip to content

Commit b433c42

Browse files
committed
gyp: Support Linux
1 parent 584ae7b commit b433c42

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

common.gypi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
'variables': {
3+
'visibility%': 'hidden', # V8's visibility setting
34
'target_arch%': 'ia32', # set v8's target architecture
45
'host_arch%': 'ia32', # set v8's host architecture
56
'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds

node.gyp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@
108108
[ 'OS=="mac"', {
109109
'sources': [ 'src/platform_darwin.cc' ],
110110
'libraries': [ '-framework Carbon' ],
111+
}],
112+
[ 'OS=="linux"', {
113+
'sources': [ 'src/platform_linux.cc' ],
114+
'libraries': [
115+
'-lutil' # needed for openpty
116+
],
111117
}]
112118
],
113119
'msvs-settings': {

0 commit comments

Comments
 (0)