diff options
author | Andrew Morrow <acm@mongodb.com> | 2017-05-20 11:11:53 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2017-05-24 23:41:24 -0400 |
commit | dab9d2681c07717eeb97ba5bf2875c1e39518782 (patch) | |
tree | 24dc95258ee3087c4a3ba2bbdd5a7d37f7cf0ef8 /site_scons | |
parent | 173463532abfa79c980579a3b1605e5716e616cb (diff) | |
download | mongo-dab9d2681c07717eeb97ba5bf2875c1e39518782.tar.gz |
SERVER-29220 Default to archive based linking
Diffstat (limited to 'site_scons')
-rw-r--r-- | site_scons/site_tools/libtool.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/site_scons/site_tools/libtool.py b/site_scons/site_tools/libtool.py new file mode 100644 index 00000000000..84a646ed066 --- /dev/null +++ b/site_scons/site_tools/libtool.py @@ -0,0 +1,17 @@ +import SCons + +def generate(env): + + env['AR'] = 'libtool' + env['ARCOM'] = '$AR -static -o $TARGET $ARFLAGS $SOURCES' + env['ARFLAGS'] = ["-s", "-no_warning_for_no_symbols"] + + def noop_action(env, target, source): + pass + + # Disable running ranlib, since we added 's' above + env['RANLIBCOM'] = noop_action + env['RANLIBCOMSTR'] = 'Skipping ranlib for libtool generated target $TARGET' + +def exists(env): + return env.detect('libtool') |