lib/ccan: add a missing dependency to 'execinfo' for 'backtrace()'
authorStefan Metzmacher <metze@samba.org>
Tue, 15 May 2012 10:40:19 +0000 (12:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 15 May 2012 14:12:53 +0000 (16:12 +0200)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 15 16:12:54 CEST 2012 on sn-devel-104

lib/ccan/wscript

index 59fe93af8eb26c1c7fd486f568e14a77324020f2..24034bb4ac99ace55e4c8b327e722bd6981a65aa 100644 (file)
@@ -117,8 +117,12 @@ def configure(conf):
                     addmain=False, link=False, cflags="-Werror",
                     define='HAVE_WARN_UNUSED_RESULT')
 
+    # backtrace could be in libexecinfo or in libc
+    conf.CHECK_FUNCS_IN('backtrace backtrace_symbols', 'execinfo', checklibc=True, headers='execinfo.h')
+
 def build(bld):
     bld.SAMBA_LIBRARY('ccan',
                       vnum="0.1-init-1161-g661d41f",
                       source=bld.path.ant_glob('*/*.c'),
+                      deps='execinfo',
                       private_library=True)