waf: Fix for lttng linking
This commit is contained in:
parent
8121091fb6
commit
a2f327678b
@ -182,7 +182,7 @@ def check_package(cfg, env, libname):
|
||||
fragment='''int main() { return 0; }''',
|
||||
msg='Testing link with %s' % libname,
|
||||
mandatory=False,
|
||||
lib='dl'
|
||||
lib=libname
|
||||
)
|
||||
|
||||
if ret:
|
||||
@ -193,6 +193,8 @@ def check_package(cfg, env, libname):
|
||||
|
||||
cfg.env.revert()
|
||||
|
||||
return ret
|
||||
|
||||
@conf
|
||||
def check_lttng(cfg, env):
|
||||
if cfg.env.STATIC_LINKING:
|
||||
@ -203,8 +205,12 @@ def check_lttng(cfg, env):
|
||||
cfg.msg("Checking for 'lttng-ust':", 'disabled', color='YELLOW')
|
||||
return False
|
||||
|
||||
check_package(cfg, env, 'lttng-ust')
|
||||
return True
|
||||
ret = check_package(cfg, env, 'lttng-ust')
|
||||
if ret:
|
||||
cfg.define('HAVE_LTTNG_UST', 1)
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
@conf
|
||||
def check_libiio(cfg, env):
|
||||
|
Loading…
Reference in New Issue
Block a user