ref: f4ad83d2490f583c34d26b41ea998b7329375c04
parent: cb796a356316cd19a838bcdd63b802c43434e582
author: Paul Brossier <piem@piem.org>
date: Sat Apr 23 17:21:01 EDT 2016
examples/wscript_build: no -lm for msvc
--- a/examples/wscript_build
+++ b/examples/wscript_build
@@ -1,5 +1,7 @@
# vim:set syntax=python:
+lib = 'm' if 'CL.exe' not in ctx.env.CC[0] else None
+
uselib = []
uselib += ['FFTW3', 'FFTW3F']
uselib += ['SAMPLERATE']
@@ -25,7 +27,7 @@
for source_file in programs_source:
bld(features = 'c cprogram',
includes = '../src',
- lib = 'm',
+ lib = lib,
use = ['aubio', 'utilsio'],
uselib = uselib,
source = source_file,