It's OK if you specify stlib and stlibpath for bld.program (It is written in the official document, but I think that it will contribute a little to googleability, so I will write it down. )
If you want to build the local libstlib1.a and libstlib2.a together,
wscript (partial excerpt)
def build(bld):
     bld.program(
        source = 'foo.cpp',
        target = 'foo',
        stlib = [
            'stlib1',
            'stlib2',
            ],
        stlibpath = ['Library path'],
        includes = ['.']
    )
For example, you can write it like this. Note that if you start with lib like stlib = ['libstlib1','libstlib2'], it will compile.
--Official document The Waf Book
Recommended Posts