summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 3 insertions, 7 deletions
diff --git a/wscript b/wscript
index 5f0b4c2..20d521a 100644
--- a/wscript
+++ b/wscript
@@ -35,13 +35,9 @@ def options(opt):
def configure(conf):
conf.load('compiler_c')
autowaf.configure(conf)
+ autowaf.set_c99_mode(conf)
autowaf.display_header('Sratom Configuration')
- if conf.env.MSVC_COMPILER:
- conf.env.append_unique('CFLAGS', ['-TP', '-MD'])
- else:
- conf.env.append_unique('CFLAGS', '-std=c99')
-
conf.env.BUILD_TESTS = Options.options.build_tests
conf.env.BUILD_STATIC = Options.options.static
@@ -75,8 +71,8 @@ def build(bld):
['SERD', 'SORD', 'LV2'],
{'SRATOM_MAJOR_VERSION' : SRATOM_MAJOR_VERSION})
- libflags = [ '-fvisibility=hidden' ]
- libs = [ 'm' ]
+ libflags = ['-fvisibility=hidden']
+ libs = ['m']
defines = []
if bld.env.MSVC_COMPILER:
libflags = []