diff options
author | Andrew Morrow <acm@mongodb.com> | 2016-11-16 15:34:50 -0500 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2016-11-29 10:29:46 -0500 |
commit | 1834a0f8425a94cfee80cb212bf831bdac200934 (patch) | |
tree | badbf0e4af6ac39e067b62d2fef712b4db7b12ae /SConstruct | |
parent | 993464ff5157f11a6f31938400014b2740d52aad (diff) | |
download | mongo-1834a0f8425a94cfee80cb212bf831bdac200934.tar.gz |
SERVER-27075 Link with hash-style=gnu when available
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 02e589c9032..51ba38cfedb 100644 --- a/SConstruct +++ b/SConstruct @@ -2376,6 +2376,9 @@ def doConfigure(myenv): # Explicitly enable GNU build id's if the linker supports it. AddToLINKFLAGSIfSupported(myenv, '-Wl,--build-id') + # Explicitly use the new gnu hash section if the linker offers it. + AddToLINKFLAGSIfSupported(myenv, '-Wl,--hash-style=gnu') + # 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 |