From c6107d812deeada62b491c209af98d9796fa4137 Mon Sep 17 00:00:00 2001 From: Julien Beraud Date: Mon, 14 Nov 2016 16:52:54 +0100 Subject: [PATCH] waf: Don't use lttng in static builds already done for libiio and libdl --- Tools/ardupilotwaf/cxx_checks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/ardupilotwaf/cxx_checks.py b/Tools/ardupilotwaf/cxx_checks.py index ca9fe7951a..d758f3729e 100644 --- a/Tools/ardupilotwaf/cxx_checks.py +++ b/Tools/ardupilotwaf/cxx_checks.py @@ -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