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-09-14 09:49:16 -0400
commitce5d64654ac2b7e861a31fd92cb1c061ab16d58b (patch)
treedd3270d11255872a0b59173fe11cca8aa2a797eb /SConstruct
parent6f672903e6d8d3f9c0a9f85ea721bbd487ec6fb0 (diff)
downloadmongo-ce5d64654ac2b7e861a31fd92cb1c061ab16d58b.tar.gz
SERVER-35078 Build darwin-ish SDKs with bitcode
(cherry picked from commit 96b6dd1e53997a3c57ffbec714f4239e9d20f6e0) Includes an additional workaround to allow bitcode on 4.0 despite the cyclic library graph
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 44148d5899c..1d634b159bf 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1760,7 +1760,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"] )