From 3cc102d61a883b4d76662f8e4e53d10142f061e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 5 Mar 2011 10:46:39 +0100
Subject: Detect libmath.


diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 9b50071..cb248a5 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -338,6 +338,9 @@ if env["PLATFORM"] != "win32" :
 if conf.CheckLib("dl") :
 	env["PLATFORM_FLAGS"]["LIBS"] = env["PLATFORM_FLAGS"].get("LIBS", []) + ["dl"]
 
+if conf.CheckLib("m") :
+	env["PLATFORM_FLAGS"]["LIBS"] = env["PLATFORM_FLAGS"].get("LIBS", []) + ["m"]
+
 if conf.CheckLib("c") :
 	env["PLATFORM_FLAGS"]["LIBS"] = env["PLATFORM_FLAGS"].get("LIBS", []) + ["c"]
 
-- 
cgit v0.10.2-6-g49f6