diff --git a/node.gyp b/node.gyp index ae13115dd34..90e760771ad 100644 --- a/node.gyp +++ b/node.gyp @@ -192,7 +192,14 @@ '-ldl', '-lutil' # needed for openpty ], - }] + }], + [ 'OS=="freebsd"', { + 'sources': [ 'src/platform_freebsd.cc' ], + 'libraries': [ + '-lutil', + '-lkvm', + ], + }], ], 'msvs-settings': { 'VCLinkerTool': {