wscript: add -lm detection
authorPaul Brossier <piem@piem.org>
Mon, 2 May 2016 23:15:16 +0000 (01:15 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 2 May 2016 23:15:16 +0000 (01:15 +0200)
wscript

diff --git a/wscript b/wscript
index f65451d..f4eb8fe 100644 (file)
--- a/wscript
+++ b/wscript
@@ -121,6 +121,8 @@ def configure(ctx):
     else:
         ctx.env.CFLAGS += ['/W4']
 
+    ctx.check_cc(lib='m', uselib_store='M', mandatory=False)
+
     if target_platform not in ['win32', 'win64']:
         ctx.env.CFLAGS += ['-fPIC']
     else: