summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2018-07-05 12:58:04 -0400
committerAndrew Morrow <acm@mongodb.com>2018-08-14 18:47:36 -0400
commit96b6dd1e53997a3c57ffbec714f4239e9d20f6e0 (patch)
treeacad3cf37fbe51221d9112d5877d12851764ccbd /SConstruct
parent885a89d60b606d64a04686f2bfdd9def23b233ff (diff)
downloadmongo-96b6dd1e53997a3c57ffbec714f4239e9d20f6e0.tar.gz
SERVER-35078 Build darwin-ish SDKs with bitcode
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 31ca80632b9..5252e5ee217 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1744,7 +1744,8 @@ if env.TargetOSIs('posix'):
# SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
# startup.
if env.TargetOSIs('darwin'):
- env.Append( LINKFLAGS=["-Wl,-bind_at_load"] )
+ if env.TargetOSIs('macOS'):
+ env.Append( LINKFLAGS=["-Wl,-bind_at_load"] )
else:
env.Append( LINKFLAGS=["-Wl,-z,now"] )
env.Append( LINKFLAGS=["-rdynamic"] )