diff options
author | Mathias Stearn <mathias@10gen.com> | 2016-08-22 16:11:33 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2016-08-29 15:34:16 -0400 |
commit | 255be3b6d6ce3fbdd42b5b796bfac7ae04d18395 (patch) | |
tree | 45ead78a36df3cc56a2dcf0294238fcf07ad1de3 | |
parent | d6d263b0c8fe21ac9bfca561515dccbe02f72e64 (diff) | |
download | mongo-255be3b6d6ce3fbdd42b5b796bfac7ae04d18395.tar.gz |
SERVER-24291 Add libdl to LIBS when using gcc sanitizers
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index bc895815410..34cdf3b0a80 100644 --- a/SConstruct +++ b/SConstruct @@ -2236,6 +2236,10 @@ def doConfigure(myenv): if not myenv.ToolchainIs('clang', 'gcc'): env.FatalError('sanitize is only supported with clang or gcc') + if myenv.ToolchainIs('gcc'): + # GCC's implementation of ASAN depends on libdl. + env.Append(LIBS=['dl']) + if env['MONGO_ALLOCATOR'] == 'tcmalloc': # There are multiply defined symbols between the sanitizer and # our vendorized tcmalloc. |