diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-07-24 15:37:27 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-07-24 23:06:56 -0400 |
commit | e9fc3c3ae2b83539d36856d2f1b5794019b6b41b (patch) | |
tree | 209c687652caa1fd6a51136617c0406440d19c52 /SConstruct | |
parent | 7d9c2e603212d3012b6f4c726f566abd812f35ea (diff) | |
download | mongo-e9fc3c3ae2b83539d36856d2f1b5794019b6b41b.tar.gz |
SERVER-9564 When libabigail utils are present, minimize relinking
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index e3700eb5398..e60a7f350c8 100644 --- a/SConstruct +++ b/SConstruct @@ -564,6 +564,9 @@ env_vars = Variables( args=ARGUMENTS ) +env_vars.Add('ABIDW', + help="Configures the path to the 'abidw' (a libabigail) utility") + env_vars.Add('ARFLAGS', help='Sets flags for the archiver', converter=variable_shlex_converter) @@ -1028,6 +1031,13 @@ env['_LIBDEPS'] = '$_LIBDEPS_OBJS' if link_model == "object" else '$_LIBDEPS_LIB if link_model.startswith("dynamic"): + # Add in the abi linking tool if the user requested and it is + # supported on this platform. + if env.get('ABIDW'): + abilink = Tool('abilink') + if abilink.exists(env): + abilink(env) + # 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'] |