diff options
author | Andrew Morrow <acm@mongodb.com> | 2017-05-16 17:17:36 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2017-05-19 09:48:47 -0400 |
commit | 72000a222189cd0768d7213a9835b212dd2507b5 (patch) | |
tree | 626be602bf85aec591d5ff071c3cf0b38e5fd4ed /src | |
parent | 2c2fcdffb42e95440b166c93733e120b033c0e12 (diff) | |
download | mongo-72000a222189cd0768d7213a9835b212dd2507b5.tar.gz |
SERVER-29221 Tag some additional libraries as free of init side effects
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/crypto/tom/SConscript | 6 | ||||
-rw-r--r-- | src/third_party/libstemmer_c/SConscript | 8 | ||||
-rw-r--r-- | src/third_party/tz/SConscript | 10 | ||||
-rw-r--r-- | src/third_party/wiredtiger/SConscript | 3 | ||||
-rw-r--r-- | src/third_party/zlib-1.2.8/SConscript | 7 |
5 files changed, 29 insertions, 5 deletions
diff --git a/src/mongo/crypto/tom/SConscript b/src/mongo/crypto/tom/SConscript index 66c9f43e2ee..4a888bd282b 100644 --- a/src/mongo/crypto/tom/SConscript +++ b/src/mongo/crypto/tom/SConscript @@ -17,4 +17,8 @@ env.Library('tomcrypt', 'hmac_process.c', 'sha1.c', 'zeromem.c'], - LIBDEPS=[]) + LIBDEPS=[], + LIBDEPS_TAGS=[ + 'init-no-global-side-effects', + ], +) diff --git a/src/third_party/libstemmer_c/SConscript b/src/third_party/libstemmer_c/SConscript index 72b6edf2f9a..3ffc4aefea3 100644 --- a/src/third_party/libstemmer_c/SConscript +++ b/src/third_party/libstemmer_c/SConscript @@ -50,4 +50,10 @@ if myEnv.ToolchainIs('GCC', 'clang'): # Machine generated code generates overflow warnings. myEnv.Append(CCFLAGS=['-fno-strict-overflow']) -myEnv.Library( "stemmer", stemmer_files ) +myEnv.Library( + target="stemmer", + source=stemmer_files, + LIBDEPS_TAGS=[ + 'init-no-global-side-effects', + ], +) diff --git a/src/third_party/tz/SConscript b/src/third_party/tz/SConscript index 889664efb2b..b158c433e1f 100644 --- a/src/third_party/tz/SConscript +++ b/src/third_party/tz/SConscript @@ -2,4 +2,12 @@ Import("env") env = env.Clone() -env.Library("tz", [ "timegm.c" ]) +env.Library( + target="tz", + source=[ + "timegm.c", + ], + LIBDEPS_TAGS=[ + 'init-no-global-side-effects', + ], +) diff --git a/src/third_party/wiredtiger/SConscript b/src/third_party/wiredtiger/SConscript index be506d1eb38..24287635d0d 100644 --- a/src/third_party/wiredtiger/SConscript +++ b/src/third_party/wiredtiger/SConscript @@ -174,6 +174,9 @@ wtlib = env.Library( '$BUILD_DIR/third_party/shim_snappy', '$BUILD_DIR/third_party/shim_zlib', ], + LIBDEPS_TAGS=[ + 'init-no-global-side-effects', + ], ) env.Depends(wtlib, [filelistfile, version_file]) diff --git a/src/third_party/zlib-1.2.8/SConscript b/src/third_party/zlib-1.2.8/SConscript index 3b98cf6ef0b..f0072456a25 100644 --- a/src/third_party/zlib-1.2.8/SConscript +++ b/src/third_party/zlib-1.2.8/SConscript @@ -19,5 +19,8 @@ env.Library( 'inftrees.c', 'trees.c', 'zutil.c', - ]) - + ], + LIBDEPS_TAGS=[ + 'init-no-global-side-effects', + ], +) |