diff options
author | David Robillard <d@drobilla.net> | 2016-08-01 20:10:18 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-01 20:10:18 -0400 |
commit | 139861de30aff14c4cf48074864eb5dab03b9303 (patch) | |
tree | 7c0dc682a4cb3ef6e91eb331065846253d539450 | |
parent | f1ed0955cb9f4c1279352b5a9d369b93175ff737 (diff) |
Fix compilation on MSVC
-rw-r--r-- | wscript | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -49,6 +49,9 @@ def build_plugin(bld, lang, bundle, name, source, defines=None): # Build plugin library penv = bld.env.derive() penv.cshlib_PATTERN = bld.env.pluginlib_PATTERN + lib = [] + if not bld.env.MSVC_COMPILER: + lib = ['m'] obj = bld(features = '%s %sshlib' % (lang,lang), env = penv, source = source, @@ -57,7 +60,7 @@ def build_plugin(bld, lang, bundle, name, source, defines=None): target = os.path.join(bundle, name), uselib = ['LV2'], install_path = '${LV2DIR}/' + bundle, - lib = ['m']) + lib = lib) if defines != None: obj.defines = defines |