diff options
author | Andrew Morrow <acm@mongodb.com> | 2016-05-16 17:59:26 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2016-06-03 08:18:15 -0400 |
commit | dd61c323913de91fd8d65a57324b9aa5079ff931 (patch) | |
tree | 4560be0a75dc24332b01c4d0ff67ce0039a59495 /SConstruct | |
parent | 283cfe3a7e2fdce4e70310d8aa8a601021511c24 (diff) | |
download | mongo-dd61c323913de91fd8d65a57324b9aa5079ff931.tar.gz |
SERVER-24120 Treat linker warnings as errors on binutils platforms
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index be4a701dcf4..a8ecad19c5f 100644 --- a/SConstruct +++ b/SConstruct @@ -1494,6 +1494,15 @@ if env.TargetOSIs('posix'): else: env.Append( CCFLAGS=["-O0"] ) + # Promote linker warnings into errors. We can't yet do this on OS X because its linker considers + # noall_load obsolete and warns about it. + if not env.TargetOSIs('osx'): + env.Append( + LINKFLAGS=[ + "-Wl,--fatal-warnings", + ], + ) + mmapv1 = False if get_option('mmapv1') == 'auto': # The mmapv1 storage engine is only supported on x86 |