summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-05 09:46:39 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-05 09:46:39 (GMT)
commit3cc102d61a883b4d76662f8e4e53d10142f061e0 (patch)
tree7efcd77f76782e63871d6b23e02a134105dbd544 /BuildTools
parent8cdfd96779722099e98aad3d9f2e66dfcb7e281a (diff)
downloadswift-3cc102d61a883b4d76662f8e4e53d10142f061e0.zip
swift-3cc102d61a883b4d76662f8e4e53d10142f061e0.tar.bz2
Detect libmath.
Diffstat (limited to 'BuildTools')
-rw-r--r--BuildTools/SCons/SConstruct3
1 files changed, 3 insertions, 0 deletions
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"]