From 5bba662f28fdb95a5d14b9e3838eebdc4b328d0b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 15 May 2016 23:39:48 +0200 Subject: [PATCH] wscript: add /MD and /D_CRT_SECURE_NO_WARNINGS on windows --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 677af279..e91ea279 100644 --- 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) -- 2.11.0