shithub: aubio

Download patch

ref: 6d7d52c17f8d7351372eb5875ddce3e8291e4199
parent: 58cffeec70021b242c0a7d5e92371b5671ffc9c8
author: Paul Brossier <piem@piem.org>
date: Fri Apr 22 20:34:13 EDT 2016

src/wscript_build: only no -lm if compiler is CL.exe

--- a/src/wscript_build
+++ b/src/wscript_build
@@ -12,7 +12,7 @@
 
 # build each source files
 source = ctx.path.ant_glob('*.c **/*.c')
-lib = 'm' if ctx.env['DEST_OS'] not in ['win32', 'win64'] else None
+lib = 'm' if 'CL.exe' not in ctx.env.CC[0] else None
 ctx(features = 'c',
         source = source,
         includes = ['.'],
--- a/tests/wscript_build
+++ b/tests/wscript_build
@@ -1,6 +1,6 @@
 # vim:set syntax=python:
 
-lib = 'm' if ctx.env['DEST_OS'] not in ['win32', 'win64'] else None
+lib = 'm' if 'CL.exe' not in ctx.env.CC[0] else None
 
 uselib = []
 uselib += ['FFTW3', 'FFTW3F']