diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-03-05 09:42:35 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-03-05 09:42:35 (GMT) |
commit | 8cdfd96779722099e98aad3d9f2e66dfcb7e281a (patch) | |
tree | 377837ae73e340c1ccb1b93739257de92b11575c /BuildTools | |
parent | f310de4bc115a724b0e9de520707607095f6b16e (diff) | |
download | swift-contrib-8cdfd96779722099e98aad3d9f2e66dfcb7e281a.zip swift-contrib-8cdfd96779722099e98aad3d9f2e66dfcb7e281a.tar.bz2 |
Detect pthread for platform flags.
Diffstat (limited to 'BuildTools')
-rw-r--r-- | BuildTools/SCons/SConstruct | 5 |
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"] |