summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2017-10-31 15:49:49 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2017-10-31 15:49:49 -0400
commit400b86d2963b30730cccfe7ae6829e6101998ac8 (patch)
tree2741ecc5a785e60afc80e4d76ec1fa9f15144b5d /SConstruct
parent2a8818d4fd7b833b82997c9996aca9eb14471f09 (diff)
downloadmongo-400b86d2963b30730cccfe7ae6829e6101998ac8.tar.gz
SERVER-31061 Add `mongo+srv://` support for URIs.
The shell now supports parsing and handling `mongo+srv://` style URIs, as part of the DNS Seedlist support. These URIs require DNS SRV and TXT record lookups, for extra configuration options. The shell also supports a (limited) form of connection-failover -- when initially connecting to a non-replica-set cluster, the shell will try each host listed, in order, until a connection can be established.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 5 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 8228a103036..9489f53bd31 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1413,7 +1413,7 @@ else:
env.AppendUnique( CPPDEFINES=[ 'NDEBUG' ] )
if env.TargetOSIs('linux'):
- env.Append( LIBS=['m'] )
+ env.Append( LIBS=['m',"resolv"] )
elif env.TargetOSIs('solaris'):
env.Append( LIBS=["socket","resolv","lgrp"] )
@@ -1422,6 +1422,9 @@ elif env.TargetOSIs('freebsd'):
env.Append( LIBS=[ "kvm" ] )
env.Append( CCFLAGS=[ "-fno-omit-frame-pointer" ] )
+elif env.TargetOSIs('darwin'):
+ env.Append( LIBS=["resolv"] )
+
elif env.TargetOSIs('openbsd'):
env.Append( LIBS=[ "kvm" ] )
@@ -1582,6 +1585,7 @@ elif env.TargetOSIs('windows'):
'advapi32.lib',
'bcrypt.lib',
'crypt32.lib',
+ 'dnsapi.lib',
'kernel32.lib',
'shell32.lib',
'pdh.lib',