Tools: ar: support for ARFLAGS environment variable

For instance, to make deterministic archives::

ARFLAGS=rcsD waf configure
This commit is contained in:
Jérôme Carretero 2014-01-02 06:22:34 -05:00
parent 80bc0a65ce
commit 6546e34176
1 changed files with 3 additions and 1 deletions

View File

@ -18,5 +18,7 @@ def find_ar(conf):
def configure(conf):
"""Find the ar program and set the default flags in ``conf.env.ARFLAGS``"""
conf.find_program('ar', var='AR')
conf.env.ARFLAGS = 'rcs'
conf.add_os_flags('ARFLAGS')
if not conf.env.ARFLAGS:
conf.env.ARFLAGS = ['rcs']