aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-01 20:10:18 -0400
committerDavid Robillard <d@drobilla.net>2016-08-01 20:10:18 -0400
commit139861de30aff14c4cf48074864eb5dab03b9303 (patch)
tree7c0dc682a4cb3ef6e91eb331065846253d539450
parentf1ed0955cb9f4c1279352b5a9d369b93175ff737 (diff)
Fix compilation on MSVC
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index ce7ad43..93bbe0f 100644
--- a/wscript
+++ b/wscript
@@ -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