summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAlexander Neben <alexander.neben@mongodb.com>2022-08-03 20:33:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-03 21:30:28 +0000
commitce2e2b062b16c775aef112bfc4e208de17a36180 (patch)
tree9565374b586a794d040ba73b2658b9350b28f637 /SConstruct
parent91d86c5b30fd75158269669d9412f595e47c3830 (diff)
downloadmongo-ce2e2b062b16c775aef112bfc4e208de17a36180.tar.gz
SERVER-68474 added temp fix for relocation overflow
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index d13b41cdd02..c8604731763 100755
--- a/SConstruct
+++ b/SConstruct
@@ -1918,6 +1918,11 @@ if link_model == 'dynamic' and env.TargetOSIs(
Failed to detect macos version: {exc}
""") + macos_version_message)
+# TODO: SERVER-68475
+# temp fix for BF-25986, should be removed when better solution is found
+if env.ToolchainIs('gcc') and not link_model == "dynamic":
+ env.Append(CCFLAGS=['-gsplit-dwarf'])
+
# libunwind configuration.
# In which the following globals are set and normalized to bool:
# - use_libunwind