summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRaymond Jacobson <raymond.jacobson@10gen.com>2015-07-27 13:53:21 -0400
committerRaymond Jacobson <raymond.jacobson@10gen.com>2015-07-31 17:04:23 -0400
commitdcf14b7f5a4611590c6ccb34c4f67b84ab233f31 (patch)
tree1f1e0a674aabeada1db98c0a5daa55faee1ad6c8 /SConstruct
parentf0541cc1f7f9cf1987aaf392dcb2328f71d6d232 (diff)
downloadmongo-dcf14b7f5a4611590c6ccb34c4f67b84ab233f31.tar.gz
SERVER-19622 Vendorize Intel Decimal Math library
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 10 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 401deab573c..85465905559 100644
--- a/SConstruct
+++ b/SConstruct
@@ -377,6 +377,11 @@ add_option('use-system-asio',
nargs=0,
)
+add_option('use-system-intel_decimal128',
+ help='use system version of intel decimal128',
+ nargs=0,
+)
+
add_option('use-system-all',
help='use all system libraries',
nargs=0,
@@ -1049,6 +1054,8 @@ if link_model.startswith("dynamic"):
# Redirect the 'Library' target, which we always use instead of 'StaticLibrary' for things
# that can be built in either mode, to point to SharedLibrary.
env['BUILDERS']['Library'] = env['BUILDERS']['SharedLibrary']
+ # Do the same for SharedObject
+ env['BUILDERS']['Object'] = env['BUILDERS']['SharedObject']
# TODO: Ideally, the conditions below should be based on a detection of what linker we are
# using, not the local OS, but I doubt very much that we will see the mach-o linker on
@@ -2148,6 +2155,9 @@ def doConfigure(myenv):
if use_system_version_of_library("yaml"):
conf.FindSysLibDep("yaml", ["yaml-cpp"])
+ if use_system_version_of_library("intel_decimal128"):
+ conf.FindSysLibDep("intel_decimal128", ["bid"])
+
if wiredtiger and use_system_version_of_library("wiredtiger"):
if not conf.CheckCXXHeader( "wiredtiger.h" ):
myenv.ConfError("Cannot find wiredtiger headers")