1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

util: Add detection of libunwind

The current detection doesn't seem to work, so libunwind doesn't seem
to be used.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Tue Jan 21 08:12:17 UTC 2020 on sn-devel-184
This commit is contained in:
Martin Schwenke 2019-10-01 13:52:38 +10:00 committed by Martin Schwenke
parent 5ff83809a2
commit 558bd7c83d
2 changed files with 11 additions and 2 deletions

View File

@ -82,7 +82,7 @@ bld.SAMBA_SUBSYSTEM('samba-util-core',
become_daemon.c mkdir_p.c''',
deps='''time-basic samba-debug socket-blocking talloc
tevent execinfo pthread strv tini''',
public_deps='systemd systemd-daemon sys_rw',
public_deps='systemd systemd-daemon sys_rw LIBUNWIND',
local_include=False)
bld.SAMBA_LIBRARY('iov_buf',

View File

@ -8,7 +8,16 @@ if Options.options.disable_fault_handling:
# backtrace could be in libexecinfo or in libc
conf.CHECK_FUNCS_IN('backtrace backtrace_symbols', 'execinfo', checklibc=True, headers='execinfo.h')
conf.CHECK_HEADERS('execinfo.h libunwind.h')
conf.CHECK_HEADERS('execinfo.h')
conf.SET_TARGET_TYPE('LIBUNWIND', 'EMPTY')
if conf.check_cfg(package='libunwind-generic',
args='--cflags --libs',
msg='Checking for libunwind',
uselib_store='LIBUNWIND',
mandatory=False):
if conf.CHECK_HEADERS('libunwind.h'):
conf.SET_TARGET_TYPE('LIBUNWIND', 'SYSLIB')
conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE', headers='sys/statvfs.h')