wscript: add /MD and /D_CRT_SECURE_NO_WARNINGS on windows
authorPaul Brossier <piem@piem.org>
Sun, 15 May 2016 21:39:48 +0000 (23:39 +0200)
committerPaul Brossier <piem@piem.org>
Sun, 15 May 2016 21:39:48 +0000 (23:39 +0200)
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)