aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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