{examples,tests}/wscript_build: add -lm
authorPaul Brossier <piem@piem.org>
Tue, 15 Oct 2013 23:22:55 +0000 (01:22 +0200)
committerPaul Brossier <piem@piem.org>
Tue, 15 Oct 2013 23:22:55 +0000 (01:22 +0200)
examples/wscript_build
tests/wscript_build

index b89b9fd..9f797e0 100644 (file)
@@ -12,6 +12,7 @@ utilsio = bld(
 for source_file in ctx.path.ant_glob('*.c', excl = ['utils.c', 'jackio.c']):
   bld.program(features = 'c cprogram',
       includes = '../src',
+      lib = 'm',
       use = ['aubio', 'FFTW3F', 'FFTW3', 'SNDFILE', 'JACK', 'LASH', 'SAMPLERATE', 'utilsio'],
       source = str(source_file),
       target = str(source_file).split('.')[0]
index 64bd5e9..1195ccd 100644 (file)
@@ -10,6 +10,7 @@ for target_name in ctx.path.ant_glob('src/**/*.c'):
     extra_source += ['../examples/jackio.c']
 
   bld(features = 'c cprogram test',
+      lib = 'm',
       uselib = uselib,
       source = [target_name] + extra_source,
       target = str(target_name).split('.')[0],