0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

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

This commit is contained in:
Richard Kreuter 2011-10-06 10:34:37 -04:00
parent 9b37bd734a
commit aa1e1ed576

View File

@ -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