From 4a26499586a283d64ea2cf5b9dde38a3f6e04fae Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Thu, 11 Dec 2014 22:17:37 -0800 Subject: [PATCH] Fix problem with detect libcapnp function --- buildutils/detect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildutils/detect.py b/buildutils/detect.py index 7500abd..8fd628d 100644 --- a/buildutils/detect.py +++ b/buildutils/detect.py @@ -120,6 +120,8 @@ def detect_version(basedir, compiler=None, **compiler_attrs): cc = ccompiler.new_compiler(compiler=compiler) cc.output_dir = basedir if not cc.has_function('timer_create'): + if 'libraries' not in compiler_attrs: + compiler_attrs['libraries'] = [] compiler_attrs['libraries'].append('rt') cc = get_compiler(compiler=compiler, **compiler_attrs)