wscript: add /MD and /D_CRT_SECURE_NO_WARNINGS on windows
[aubio.git] / wscript
diff --git a/wscript b/wscript
index 677af27..e91ea27 100644 (file)
--- a/wscript
+++ b/wscript
@@ -119,7 +119,8 @@ def configure(ctx):
     if ctx.env.CC_NAME != 'msvc':
         ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra']
     else:
-        ctx.env.CFLAGS += ['/W4']
+        ctx.env.CFLAGS += ['/W4', '/MD']
+        ctx.env.CFLAGS += ['/D_CRT_SECURE_NO_WARNINGS']
 
     ctx.check_cc(lib='m', uselib_store='M', mandatory=False)