summaryrefslogtreecommitdiff
path: root/distsrc
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-04-30 18:55:22 -0400
committerdwight <dwight@10gen.com>2011-04-30 18:55:22 -0400
commit287981ace2ec0fc5bb9930afe9061b47fc54d474 (patch)
tree401f00f3edad67a2324b9f42c6d06a5a2bc330b2 /distsrc
parent55c95ec3f08cdb7382ffdb5861edafc9577f1d71 (diff)
downloadmongo-287981ace2ec0fc5bb9930afe9061b47fc54d474.tar.gz
fix cpp driver sconstruct linking
Diffstat (limited to 'distsrc')
-rwxr-xr-x[-rw-r--r--]distsrc/client/SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/distsrc/client/SConstruct b/distsrc/client/SConstruct
index be16ad3ec43..6a30df67863 100644..100755
--- a/distsrc/client/SConstruct
+++ b/distsrc/client/SConstruct
@@ -1,3 +1,4 @@
+# scons file for MongoDB c++ client library and examples
import os
@@ -50,7 +51,7 @@ if nix:
if linux:
env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " )
-boostLibs = [ "thread" , "filesystem" , "system" ]
+boostLibs = [ "thread" , "filesystem" , "system", "thread" ]
conf = Configure(env)
for lib in boostLibs:
if not conf.CheckLib("boost_%s-mt" % lib):
@@ -93,6 +94,7 @@ clientEnv.Prepend( LIBS=["libmongoclient.a"])
clientEnv.Prepend( LIBPATH=["."] )
# examples
+
clientTests += [ clientEnv.Program( "firstExample" , [ "client/examples/first.cpp" ] ) ]
clientTests += [ clientEnv.Program( "secondExample" , [ "client/examples/second.cpp" ] ) ]
clientTests += [ clientEnv.Program( "whereExample" , [ "client/examples/whereExample.cpp" ] ) ]
@@ -100,3 +102,4 @@ clientTests += [ clientEnv.Program( "authTest" , [ "client/examples/authTest.cpp
clientTests += [ clientEnv.Program( "httpClientTest" , [ "client/examples/httpClientTest.cpp" ] ) ]
clientTests += [ clientEnv.Program( "clientTest" , [ "client/examples/clientTest.cpp" ] ) ]
clientEnv.Alias("clientTests", clientTests, [])
+