summaryrefslogtreecommitdiff
path: root/distsrc
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2011-10-06 10:34:37 -0400
committerRichard Kreuter <richard@10gen.com>2011-10-06 10:35:11 -0400
commitaa1e1ed57664ba12d66840f550c5258e520763e7 (patch)
treef89f53c2b98320182838dc1c9850c133efdea787 /distsrc
parent9b37bd734a82f39b1fb2e7ff3d3c008ae6b158ea (diff)
downloadmongo-aa1e1ed57664ba12d66840f550c5258e520763e7.tar.gz
Always build a shared C++ library in the standalone driver's SConstruct.
Diffstat (limited to 'distsrc')
-rwxr-xr-xdistsrc/client/SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/distsrc/client/SConstruct b/distsrc/client/SConstruct
index 54fc9437d3c..4979c9244e6 100755
--- a/distsrc/client/SConstruct
+++ b/distsrc/client/SConstruct
@@ -70,6 +70,7 @@ allClientFiles += Glob( "mongo/util/*.c" )
libs = []
libs += env.SharedLibrary( "mongoclient" , allClientFiles )
+sharedClientLibName = str(libs[-1])
libs += env.Library( "mongoclient" , allClientFiles )
# install
@@ -90,7 +91,7 @@ env.Alias( "install" , prefix )
clientTests = []
clientEnv = env.Clone();
-clientEnv.Prepend( LIBS=["libmongoclient.a"])
+clientEnv.Prepend( LIBS=["libmongoclient.a", sharedClientLibName])
clientEnv.Prepend( LIBPATH=["."] )
# examples