build: fix freebsd gyp build
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 17 Aug 2011 05:44:53 +0000 (07:44 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 17 Aug 2011 05:50:59 +0000 (07:50 +0200)
node.gyp

index ae13115dd342ef67ce11f590f398822ff8114a04..90e760771ad255e7817116d0c0dca6005149e7bf 100644 (file)
--- a/node.gyp
+++ b/node.gyp
             '-ldl',
             '-lutil' # needed for openpty
           ],
-        }]
+        }],
+        [ 'OS=="freebsd"', {
+          'sources': [ 'src/platform_freebsd.cc' ],
+          'libraries': [
+            '-lutil',
+            '-lkvm',
+          ],
+        }],
       ],
       'msvs-settings': {
         'VCLinkerTool': {