Skip to content

Commit

Permalink
Always build a shared C++ library in the standalone driver's SConstruct.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kreuter committed Oct 6, 2011
1 parent 9b37bd7 commit aa1e1ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distsrc/client/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit aa1e1ed

Please sign in to comment.