diff --git a/librz/util/meson.build b/librz/util/meson.build index 9228686760..f8406c9f9a 100644 --- a/librz/util/meson.build +++ b/librz/util/meson.build @@ -84,7 +84,7 @@ rz_util_sources = [ ] rz_util_deps = [ldl, lrt, mth, pth, utl, sdb_dep, zlib_dep, platform_deps] -if host_machine.system().startswith('freebsd') or host_machine.system().startswith('netbsd') or host_machine.system().startswith('haiku') +if ['freebsd', 'netbsd', 'haiku', 'dragonfly'].contains(host_machine.system()) # backtrace_symbols_fd requires -lexecinfo rz_util_deps += [cc.find_library('execinfo', static: is_static_build)] endif diff --git a/meson.build b/meson.build index 183b7cba26..d40f1e5a96 100644 --- a/meson.build +++ b/meson.build @@ -338,7 +338,7 @@ userconf.set10('HAVE_DECL_ADDR_NO_RANDOMIZE', ok) ok = cc.has_header_symbol('sys/procctl.h', 'PROC_ASLR_CTL') userconf.set10('HAVE_DECL_PROCCTL_ASLR_CTL', ok) -if host_machine.system() == 'freebsd' +if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly' add_project_link_arguments('-Wl,--unresolved-symbols,ignore-in-object-files', language: 'c') add_project_link_arguments('-Wl,--allow-shlib-undefined', language: 'c') endif @@ -348,7 +348,7 @@ if not cc.has_function('clock_gettime', prefix: '#include ') and cc.has_ lrt = cc.find_library('rt', required: true, static: is_static_build) endif -have_lrt = not ['windows', 'darwin', 'openbsd', 'android'].contains(host_machine.system()) +have_lrt = not ['windows', 'darwin', 'openbsd', 'android', 'haiku'].contains(host_machine.system()) if have_lrt and lrt == [] lrt = cc.find_library('rt', required: true, static: is_static_build) endif