Created
July 13, 2016 13:53
-
-
Save lucasdemarchi/9fed061f028e9dfeed053be980f5bece to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Tools/ardupilotwaf/ardupilotwaf.py b/Tools/ardupilotwaf/ardupilotwaf.py | |
index b5dcd1e..27a9441 100644 | |
--- a/Tools/ardupilotwaf/ardupilotwaf.py | |
+++ b/Tools/ardupilotwaf/ardupilotwaf.py | |
@@ -133,6 +133,7 @@ def ap_program(bld, | |
name=name, | |
program_name=program_name, | |
program_dir=program_dir, | |
+ uselib='LIBIIO LIBDL LTTNG-UST', | |
**kw | |
) | |
diff --git a/Tools/ardupilotwaf/cxx_checks.py b/Tools/ardupilotwaf/cxx_checks.py | |
index 624d85b..76ba1d7 100644 | |
--- a/Tools/ardupilotwaf/cxx_checks.py | |
+++ b/Tools/ardupilotwaf/cxx_checks.py | |
@@ -160,12 +160,7 @@ def check_librt(cfg, env): | |
def check_package(cfg, env, libname): | |
'''use pkg-config to look for an installed library that has a LIBNAME.pc file''' | |
cfg.check_cfg(package=libname, mandatory=False, global_define=True, | |
- args=['--libs', '--cflags']) | |
- capsname = libname.upper() | |
- env.LIB += cfg.env['LIB_%s' % capsname] | |
- env.INCLUDES += cfg.env['INCLUDES_%s' % capsname] | |
- env.CFLAGS += cfg.env['CFLAGS_%s' % capsname] | |
- env.LIBPATH += cfg.env['LIBPATH_%s' % capsname] | |
+ args=['--libs', '--cflags'], uselib_store=libname.upper()) | |
@conf | |
def check_lttng(cfg, env): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment