diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2020-10-02 17:45:37 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-06 05:16:55 +0000 |
commit | caf4ff75d54dab2ed16d2a14d8f3a10cde1ccb6a (patch) | |
tree | 0b2617fa7529327dbc60467cab7463cc179657d8 /SConstruct | |
parent | 78bb3f3c8a658a5a9fec8d55864e426382f68bd0 (diff) | |
download | mongo-caf4ff75d54dab2ed16d2a14d8f3a10cde1ccb6a.tar.gz |
SERVER-51318 Explicitly set pre/post libdeps flags to be set to nothing.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 9 |
1 files changed, 6 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) |