aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-16 22:00:07 +0000
committerDavid Robillard <d@drobilla.net>2012-01-16 22:00:07 +0000
commitafe8dedca6d5f4a42a1951c383b6f5b8dfd827db (patch)
tree48c1238ff7eca21381e7ea268cb5bdcb993baf3d /wscript
parent191968810ea2c30290eac330690fb671c4585b7a (diff)
downloadserd-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
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 5 insertions, 6 deletions
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