On windows, link with Winsock and WinMM
authorBert Belder <bertbelder@gmail.com>
Thu, 25 Nov 2010 00:50:28 +0000 (01:50 +0100)
committerBert Belder <bertbelder@gmail.com>
Mon, 20 Dec 2010 22:51:06 +0000 (23:51 +0100)
wscript

diff --git a/wscript b/wscript
index 503d92a..5d991c6 100644 (file)
--- a/wscript
+++ b/wscript
@@ -397,6 +397,10 @@ def configure(conf):
     conf.env.append_value('CPPFLAGS', '-pg')
     conf.env.append_value('LINKFLAGS', '-pg')
 
+  if sys.platform.startswith("win32"):
+    conf.env.append_value('LIB', 'ws2_32')
+    conf.env.append_value('LIB', 'winmm')
+
   conf.env.append_value('CPPFLAGS', '-Wno-unused-parameter');
   conf.env.append_value('CPPFLAGS', '-D_FORTIFY_SOURCE=2');