waf: fixed static link build

for bebop
This commit is contained in:
Andrew Tridgell 2018-12-31 11:55:27 +11:00
parent 7c2a6aed2d
commit d8291ef1d1
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@ def ap_program(bld,
program_dir=program_dir,
**kw
)
if 'use' in kw and bld.env.STATIC_LINKING:
# ensure we link against vehicle library
tg.env.STLIB += [kw['use']]
for group in program_groups:
_grouped_programs.setdefault(group, []).append(tg)