meson: add -lexecinfo on FreeBSD (#10932)

This commit is contained in:
Fangrui Song 2018-08-05 02:53:54 -07:00 committed by radare
parent 3aafc2cb28
commit dd13b619f8

View File

@ -80,9 +80,14 @@ files = [
'regex/regerror.c'
]
r_util_deps = [ldl, mth, pth, utl, sdb_dep, zlib_dep]
if host_machine.system().startswith('freebsd')
# backtrace_symbols_fd requires -lexecinfo
r_util_deps += [cc.find_library('execinfo')]
endif
r_util = library('r_util', files,
include_directories: platform_inc,
dependencies: [ldl, mth, pth, utl, sdb_dep, zlib_dep],
dependencies: r_util_deps,
install: true,
implicit_include_directories: false,
soversion: r2_libversion