summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2020-10-15 18:03:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-15 21:57:45 +0000
commit0c904d2a3d9028d171961d88178e3f15c2d5a1e0 (patch)
tree00f77cdae243623ecd898eb3bfcc02ee148bbfd6
parent3b374a0a3ce7425b06002b239733553d60e454e7 (diff)
downloadmongo-0c904d2a3d9028d171961d88178e3f15c2d5a1e0.tar.gz
SERVER-46871 Added configure check for lzma when libunwind is in use
-rw-r--r--SConstruct4
-rw-r--r--site_scons/libdeps_next.py9
2 files changed, 9 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index a92d0d68090..cf4dc21742d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -3685,6 +3685,10 @@ def doConfigure(myenv):
if use_system_version_of_library("libunwind"):
conf.FindSysLibDep("unwind", ["unwind"])
+ if use_libunwind:
+ if not conf.CheckLib("lzma"):
+ myenv.ConfError("Cannot find system library 'lzma' required for use with libunwind")
+
if use_system_version_of_library("intel_decimal128"):
conf.FindSysLibDep("intel_decimal128", ["bid"])
diff --git a/site_scons/libdeps_next.py b/site_scons/libdeps_next.py
index ae3dbe9ae5b..51a8376ab3c 100644
--- a/site_scons/libdeps_next.py
+++ b/site_scons/libdeps_next.py
@@ -732,10 +732,11 @@ def make_get_syslibdeps_callable(shared):
continue
if isinstance(syslib, str) and syslib.startswith(Constants.MissingLibdep):
- MissingSyslibdepError(textwrap.dedent(f"""\
- Target '{str(target[0])}' depends on the availability of a
- system provided library for '{syslib[len(Constants.MissingLibdep):]}',
- but no suitable library was found during configuration."""
+ raise MissingSyslibdepError(textwrap.dedent(f"""\
+ LibdepsError:
+ Target '{str(target[0])}' depends on the availability of a
+ system provided library for '{syslib[len(Constants.MissingLibdep):]}',
+ but no suitable library was found during configuration."""
))
deps.append(syslib)