summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2017-10-26 13:29:28 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2017-10-27 15:16:33 -0400
commit58da3876b02408e5c19927f1b342b8e40835bc86 (patch)
treef875bc2b4ec6011a67199d35d08902ed275e0a02 /src
parent1032951961fdd2fabb580e5e5bafd9201cfcf678 (diff)
downloadmongo-58da3876b02408e5c19927f1b342b8e40835bc86.tar.gz
SERVER-31736 Fix Windows build when --dynamic-windows is on but not --ssl
Diffstat (limited to 'src')
-rw-r--r--src/mongo/crypto/SConscript5
-rw-r--r--src/third_party/tomcrypt-1.18.0-rc2/SConscript6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/crypto/SConscript b/src/mongo/crypto/SConscript
index ecf857b1217..4e680e8cdb2 100644
--- a/src/mongo/crypto/SConscript
+++ b/src/mongo/crypto/SConscript
@@ -25,6 +25,11 @@ env.Library('sha256_block',
if "tom" in env["MONGO_CRYPTO"]:
tomEnv = env.Clone();
tomEnv.InjectThirdPartyIncludePaths(libraries=['tomcrypt'])
+ tomEnv.Append(
+ CPPDEFINES=[
+ 'LTC_NO_PROTOTYPES',
+ ]
+ )
tomEnv.Library(
target='sha_block_tom',
diff --git a/src/third_party/tomcrypt-1.18.0-rc2/SConscript b/src/third_party/tomcrypt-1.18.0-rc2/SConscript
index e7dbfb08ac1..ac040bf3dea 100644
--- a/src/third_party/tomcrypt-1.18.0-rc2/SConscript
+++ b/src/third_party/tomcrypt-1.18.0-rc2/SConscript
@@ -19,6 +19,12 @@ env.Prepend(CPPPATH=[
'src/headers',
])
+env.Append(
+ CPPDEFINES=[
+ 'LTC_NO_PROTOTYPES',
+ ]
+)
+
env.Library(
target="tomcrypt",
source= [