Permalink
Browse files

Always build a shared C++ library in the standalone driver's SConstruct.

  • Loading branch information...
1 parent 9b37bd7 commit aa1e1ed57664ba12d66840f550c5258e520763e7 @kreuter kreuter committed Oct 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit aa1e1ed

Please sign in to comment.