mirror of https://github.com/ArduPilot/ardupilot
waf: check for lttng-ust for all linux boards
This commit is contained in:
parent
9ac6c399e9
commit
04fc1e22da
|
@ -220,6 +220,7 @@ class linux(Board):
|
|||
]
|
||||
|
||||
cfg.check_librt(env)
|
||||
cfg.check_lttng(env)
|
||||
|
||||
env.LINKFLAGS += ['-pthread',]
|
||||
env.AP_LIBRARIES = [
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue