3 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
7 # Thomas Nagy, 2006-2018 (ita)
8 # Ralf Habacker, 2006 (rh)
11 The **ar** program creates static libraries. This tool is almost always loaded
12 from others (C, C++, D, etc) for static library support.
15 from waflib.Configure import conf
19 """Configuration helper used by C/C++ tools to enable the support for static libraries"""
23 """Finds the ar program and sets the default flags in ``conf.env.ARFLAGS``"""
24 conf.find_program('ar', var='AR')
25 conf.add_os_flags('ARFLAGS')
26 if not conf.env.ARFLAGS:
27 conf.env.ARFLAGS = ['rcs']