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:
parent
9b37bd734a
commit
aa1e1ed576
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user