win: link to psapi.lib

broke in 65c2763
This commit is contained in:
Ryan Dahl
2011-09-02 12:53:16 -07:00
parent c28f20f880
commit 197628846d
3 changed files with 3 additions and 0 deletions

View File

@@ -112,6 +112,7 @@
# we need to use node's preferred "win32" rather than gyp's preferred "win"
'PLATFORM="win32"',
],
'libraries': [ '-lpsapi.lib' ]
},{ # POSIX
'defines': [ '__POSIX__' ],
'sources': [

View File

@@ -33,6 +33,7 @@
#endif
#include <platform_win32.h>
#include <psapi.h>
namespace node {

View File

@@ -491,6 +491,7 @@ def configure(conf):
conf.env.append_value('LINKFLAGS', '-pg')
if sys.platform.startswith("win32"):
conf.env.append_value('LIB', 'psapi')
conf.env.append_value('LIB', 'ws2_32')
conf.env.append_value('LIB', 'winmm')