waf: check for lttng-ust for all linux boards

This commit is contained in:
Lucas De Marchi 2016-05-21 12:16:11 -03:00
parent 9ac6c399e9
commit 04fc1e22da
2 changed files with 8 additions and 0 deletions

View File

@ -220,6 +220,7 @@ class linux(Board):
]
cfg.check_librt(env)
cfg.check_lttng(env)
env.LINKFLAGS += ['-pthread',]
env.AP_LIBRARIES = [

View File

@ -148,3 +148,10 @@ def check_librt(cfg, env):
env.LIB += cfg.env['LIB_RT']
return ret
@conf
def check_lttng(cfg, env):
cfg.check_cfg(package='lttng-ust', mandatory=False, global_define=True,
args=['--libs', '--cflags'])
env.LIB += cfg.env['LIB_LTTNG-UST']
return True