title: WAF - combine static libraries
body: <p>My project has external library dependencies and I am using waf scripts to build it - C, C++.</p>
  
  <p>I am trying to build static library which will have all the dependent libraries statically linked. For example, I use this to build dynamic shared object:</p>
  
  <pre><code>bld.program(features = 'c cxx cxxshlib'
              , target = 'program'
              , source =  sources
              , use = libs_list)
  </code></pre>
  
  <p>Shared object will have all the dependent libraries (specified with <code>libs_list</code>) linked.
  However, static library:</p>
  
  <pre><code>bld.program(features = 'c cxx cxxstlib'
              , target = 'program'
              , cppflags = '-DSTATIC_LIB'
              , source = sources
              , use = libs_list)
  </code></pre>
  
  <p>will not. Is there a way to overcome this? Or do I need to do this manually in post build function?</p>