Find and use libexecinfo (for backtrace()).
authorThomas Klausner <wiz@gatalith.at>
Sun, 18 Jun 2023 12:11:50 +0000 (14:11 +0200)
committerColin Clark <colin.clark@cclark.uk>
Mon, 19 Jun 2023 08:36:25 +0000 (09:36 +0100)
Fixes build on NetBSD.

meson.build
src/meson.build

index e91fe15..2bcaf71 100644 (file)
@@ -190,6 +190,7 @@ option = get_option('execinfo')
 if not option.disabled()
     result = cc.check_header('execinfo.h')
     if result
+        libexecinfo_dep = cc.find_library('execinfo', required : false)
         conf_data.set('HAVE_EXECINFO_H', 1)
         summary({'execinfo' : ['stacktrace supported:', true]}, section : 'Debugging', bool_yn : true)
     else
index 2930469..e9133ce 100644 (file)
@@ -281,6 +281,7 @@ gspell_dep,
 lcms_dep,
 libarchive_dep,
 libdw_dep,
+libexecinfo_dep,
 libffmpegthumbnailer_dep,
 libheif_dep,
 libjpeg_dep,