summaryrefslogtreecommitdiff
path: root/distsrc
diff options
context:
space:
mode:
authorMike Dirolf <mike@10gen.com>2010-07-27 10:37:48 -0400
committerMike Dirolf <mike@10gen.com>2010-07-27 10:37:48 -0400
commitd36e4b6e0b264b8ab187dcab519ecab5360de2cd (patch)
tree25a04c723ab45c063d096b3464690341f2ef264a /distsrc
parent5b7ab6fa0ed3404bef3709d26a3c09850ef2f60d (diff)
downloadmongo-d36e4b6e0b264b8ab187dcab519ecab5360de2cd.tar.gz
add -Wl,--as-needed and -Wl,-zdefs only on linux
Diffstat (limited to 'distsrc')
-rw-r--r--distsrc/client/SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/distsrc/client/SConstruct b/distsrc/client/SConstruct
index 59b47d922c2..7221a97420f 100644
--- a/distsrc/client/SConstruct
+++ b/distsrc/client/SConstruct
@@ -25,15 +25,18 @@ env.Append( CPPPATH=[ "mongo/" ] )
env.Append( CPPDEFINES=[ "_SCONS" , "MONGO_EXPOSE_MACROS" ] )
nix = False
+linux = False
if "darwin" == os.sys.platform:
addExtraLibs( "/opt/local/" )
nix = True
elif "linux2" == os.sys.platform:
nix = True
+ linux = True
if nix:
env.Append( CPPFLAGS=" -O3" )
+if linux:
env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " )
boostLibs = [ "thread" , "filesystem" , "system" ]