diff options
author | Andrew Morrow <acm@mongodb.com> | 2016-11-29 13:01:44 -0500 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2016-11-29 17:30:04 -0500 |
commit | 075b474c44f5ca9e266b70da201242270d73ba5e (patch) | |
tree | 81a5e134f25142b6dad9ba54cac5219166c8d151 /SConstruct | |
parent | e3b83164d195d3967ceab50190093c462a9a1f4d (diff) | |
download | mongo-075b474c44f5ca9e266b70da201242270d73ba5e.tar.gz |
SERVER-10576 Use gold ODR violation detection if available
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 51ba38cfedb..00a3c204964 100644 --- a/SConstruct +++ b/SConstruct @@ -2379,6 +2379,9 @@ def doConfigure(myenv): # Explicitly use the new gnu hash section if the linker offers it. AddToLINKFLAGSIfSupported(myenv, '-Wl,--hash-style=gnu') + # Try to have the linker tell us about ODR violations + AddToLINKFLAGSIfSupported(myenv, '-Wl,--detect-odr-violations') + # Disallow an executable stack. Also, issue a warning if any files are found that would # cause the stack to become executable if the noexecstack flag was not in play, so that we # can find them and fix them. We do this here after we check for ld.gold because the |