waf: Don't use lttng in static builds

already done for libiio and libdl
This commit is contained in:
Julien Beraud 2016-11-14 16:52:54 +01:00 committed by Lucas De Marchi
parent 32cd49264e
commit c6107d812d
1 changed files with 4 additions and 0 deletions

View File

@ -170,6 +170,10 @@ def check_package(cfg, env, libname):
@conf
def check_lttng(cfg, env):
if cfg.env.STATIC_LINKING:
# lttng-ust depends on libdl which means it can't be used in a static build
cfg.msg("Checking for 'lttng-ust':", 'disabled for static build', color='YELLOW')
return False
if cfg.options.disable_lttng:
cfg.msg("Checking for 'lttng-ust':", 'disabled', color='YELLOW')
return False