summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2020-10-02 17:45:37 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-06 05:16:55 +0000
commitcaf4ff75d54dab2ed16d2a14d8f3a10cde1ccb6a (patch)
tree0b2617fa7529327dbc60467cab7463cc179657d8
parent78bb3f3c8a658a5a9fec8d55864e426382f68bd0 (diff)
downloadmongo-caf4ff75d54dab2ed16d2a14d8f3a10cde1ccb6a.tar.gz
SERVER-51318 Explicitly set pre/post libdeps flags to be set to nothing.
-rw-r--r--SConstruct9
-rw-r--r--site_scons/libdeps_next.py1
2 files changed, 7 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 2bfe2a2b426..92ec5fb67bb 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1777,8 +1777,8 @@ elif env.TargetOSIs('windows'):
def init_no_global_add_flags(env, start_flag, end_flag):
""" Helper function for init_no_global_libdeps_tag_expand"""
- env.AppendUnique(LIBDEPS_PREFIX_FLAGS=[start_flag])
- env.PrependUnique(LIBDEPS_POSTFIX_FLAGS=[end_flag])
+ env['LIBDEPS_PREFIX_FLAGS']=[start_flag]
+ env['LIBDEPS_POSTFIX_FLAGS']=[end_flag]
if env.TargetOSIs('linux', 'freebsd', 'openbsd'):
env.AppendUnique(
LIBDEPS_SWITCH_FLAGS=[{
@@ -1806,6 +1806,8 @@ def init_no_global_libdeps_tag_expand(source, target, env, for_signature):
env.AppendUnique(SHLINKFLAGS=[start_flag])
else:
init_no_global_add_flags(env, start_flag, end_flag)
+ else:
+ init_no_global_add_flags(env, "", "")
else:
start_flag = env.get('LINK_WHOLE_ARCHIVE_LIB_START', '')
@@ -1817,7 +1819,8 @@ def init_no_global_libdeps_tag_expand(source, target, env, for_signature):
# at link time.
if "init-no-global-side-effects" not in env.get(libdeps.Constants.LibdepsTags, []):
init_no_global_add_flags(env, start_flag, end_flag)
-
+ else:
+ init_no_global_add_flags(env, "", "")
return []
env['LIBDEPS_TAG_EXPANSIONS'].append(init_no_global_libdeps_tag_expand)
diff --git a/site_scons/libdeps_next.py b/site_scons/libdeps_next.py
index caff3c1c4d1..c39a37ff25b 100644
--- a/site_scons/libdeps_next.py
+++ b/site_scons/libdeps_next.py
@@ -1010,6 +1010,7 @@ def setup_environment(env, emitting_shared=False, linting='on'):
)
env.Prepend(_LIBFLAGS="$_LIBDEPS_TAGS $_LIBDEPS $_SYSLIBDEPS ")
+ env.Prepend(ARFLAGS="$_LIBDEPS_TAGS ")
for builder_name in ("Program", "SharedLibrary", "LoadableModule", "SharedArchive"):
try:
update_scanner(env["BUILDERS"][builder_name])