mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
SERVER-9761 Enforce immediate binding of all symbols at process startup
This commit is contained in:
parent
1515efcb5e
commit
57a4875807
12
SConstruct
12
SConstruct
@ -750,6 +750,18 @@ if nix:
|
|||||||
env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
|
env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
|
||||||
env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
|
env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
|
||||||
|
|
||||||
|
# SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
|
||||||
|
# startup.
|
||||||
|
#
|
||||||
|
# TODO: Is it necessary to add to both linkflags and shlinkflags, or are LINKFLAGS
|
||||||
|
# propagated to SHLINKFLAGS?
|
||||||
|
if darwin:
|
||||||
|
env.Append( LINKFLAGS=["-Wl,-bind_at_load"] )
|
||||||
|
env.Append( SHLINKFLAGS=["-Wl,-bind_at_load"] )
|
||||||
|
else:
|
||||||
|
env.Append( LINKFLAGS=["-Wl,-z,now"] )
|
||||||
|
env.Append( SHLINKFLAGS=["-Wl,-z,now"] )
|
||||||
|
|
||||||
if not darwin:
|
if not darwin:
|
||||||
env.Append( LINKFLAGS=["-rdynamic"] )
|
env.Append( LINKFLAGS=["-rdynamic"] )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user