From decd81838abb265a81b71b379931199c1d5e2c77 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 17 Aug 2011 07:44:53 +0200 Subject: [PATCH] build: fix freebsd gyp build --- node.gyp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/node.gyp b/node.gyp index ae13115dd3..90e760771a 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': {