My project has external library dependencies and I am using waf scripts to build it - C, C++.
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:
bld.program(features = 'c cxx cxxshlib'
, target = 'program'
, source = sources
, use = libs_list)
Shared object will have all the dependent libraries (specified with libs_list
) linked.
However, static library:
bld.program(features = 'c cxx cxxstlib'
, target = 'program'
, cppflags = '-DSTATIC_LIB'
, source = sources
, use = libs_list)
will not. Is there a way to overcome this? Or do I need to do this manually in post build function?