0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00
mongodb/site_scons/site_tools/libtool.py

20 lines
461 B
Python
Raw Normal View History

import SCons
2019-02-19 16:50:57 +01:00
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'
2019-02-19 16:50:57 +01:00
def exists(env):
return env.detect('libtool')