summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-05 09:42:35 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-05 09:42:35 (GMT)
commit8cdfd96779722099e98aad3d9f2e66dfcb7e281a (patch)
tree377837ae73e340c1ccb1b93739257de92b11575c /BuildTools/SCons/SConstruct
parentf310de4bc115a724b0e9de520707607095f6b16e (diff)
downloadswift-contrib-8cdfd96779722099e98aad3d9f2e66dfcb7e281a.zip
swift-contrib-8cdfd96779722099e98aad3d9f2e66dfcb7e281a.tar.bz2
Detect pthread for platform flags.
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 0c1cf94..9b50071 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -331,10 +331,13 @@ else :
if conf.CheckLib("resolv") :
env["PLATFORM_FLAGS"]["LIBS"] = env["PLATFORM_FLAGS"].get("LIBS", []) + ["resolv"]
+if env["PLATFORM"] != "win32" :
+ if conf.CheckLib("pthread") :
+ env["PLATFORM_FLAGS"]["LIBS"] = env["PLATFORM_FLAGS"].get("LIBS", []) + ["pthread"]
+
if conf.CheckLib("dl") :
env["PLATFORM_FLAGS"]["LIBS"] = env["PLATFORM_FLAGS"].get("LIBS", []) + ["dl"]
-
if conf.CheckLib("c") :
env["PLATFORM_FLAGS"]["LIBS"] = env["PLATFORM_FLAGS"].get("LIBS", []) + ["c"]