diff --git a/common.gypi b/common.gypi index 840d3a7a28..638a3270cd 100644 --- a/common.gypi +++ b/common.gypi @@ -1,5 +1,6 @@ { 'variables': { + 'visibility%': 'hidden', # V8's visibility setting 'target_arch%': 'ia32', # set v8's target architecture 'host_arch%': 'ia32', # set v8's host architecture 'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds diff --git a/node.gyp b/node.gyp index bd67d670d8..f6894d2a58 100644 --- a/node.gyp +++ b/node.gyp @@ -108,6 +108,12 @@ [ 'OS=="mac"', { 'sources': [ 'src/platform_darwin.cc' ], 'libraries': [ '-framework Carbon' ], + }], + [ 'OS=="linux"', { + 'sources': [ 'src/platform_linux.cc' ], + 'libraries': [ + '-lutil' # needed for openpty + ], }] ], 'msvs-settings': {