From afe8dedca6d5f4a42a1951c383b6f5b8dfd827db Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Jan 2012 22:00:07 +0000 Subject: Compile with -MD on Windows so passing a FILE* between DLLs doesn't crash. git-svn-id: http://svn.drobilla.net/serd/trunk@294 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- wscript | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 1890fc94..8575e0af 100644 --- a/wscript +++ b/wscript @@ -47,7 +47,7 @@ def configure(conf): autowaf.display_header('Serd Configuration') if conf.env['MSVC_COMPILER']: - conf.env.append_unique('CFLAGS', '-TP') + conf.env.append_unique('CFLAGS', ['-TP', '-MD']) else: conf.env.append_unique('CFLAGS', '-std=c99') @@ -128,11 +128,10 @@ def build(bld): libflags = [ '-fvisibility=hidden' ] libs = [ 'm' ] defines = [] - if sys.platform == 'win32': - libflags = [] if bld.env['MSVC_COMPILER']: - libs = [] - defines = ['snprintf=_snprintf'] + libflags = [] + libs = [] + defines = ['snprintf=_snprintf'] # Shared Library obj = bld(features = 'c cshlib', @@ -160,7 +159,7 @@ def build(bld): vnum = SERD_LIB_VERSION, install_path = '${LIBDIR}', defines = defines, - cflags = [ '-DSERD_INTERNAL' ]) + cflags = ['-DSERD_INTERNAL']) if bld.env['BUILD_TESTS']: test_libs = libs -- cgit v1.2.1