diff options
author | David Robillard <d@drobilla.net> | 2012-01-16 22:00:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-16 22:00:07 +0000 |
commit | afe8dedca6d5f4a42a1951c383b6f5b8dfd827db (patch) | |
tree | 48c1238ff7eca21381e7ea268cb5bdcb993baf3d | |
parent | 191968810ea2c30290eac330690fb671c4585b7a (diff) | |
download | serd-afe8dedca6d5f4a42a1951c383b6f5b8dfd827db.tar.gz serd-afe8dedca6d5f4a42a1951c383b6f5b8dfd827db.tar.bz2 serd-afe8dedca6d5f4a42a1951c383b6f5b8dfd827db.zip |
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
-rw-r--r-- | wscript | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |