3 # Thomas Nagy, 2006-2018 (ita)
4 # Ralf Habacker, 2006 (rh)
7 The **ar** program creates static libraries. This tool is almost always loaded
8 from others (C, C++, D, etc) for static library support.
11 from waflib
.Configure
import conf
15 """Configuration helper used by C/C++ tools to enable the support for static libraries"""
19 """Finds the ar program and sets the default flags in ``conf.env.ARFLAGS``"""
20 conf
.find_program('ar', var
='AR')
21 conf
.add_os_flags('ARFLAGS')
22 if not conf
.env
.ARFLAGS
:
23 conf
.env
.ARFLAGS
= ['rcs']