Fix #6979 meson build fails link libexecinfo on Alpine

This commit is contained in:
lloyd konneker 2021-06-18 11:41:18 -04:00 committed by Jehan
parent f2fb98cb69
commit 37593d6da3
2 changed files with 2 additions and 8 deletions

View File

@ -38,13 +38,6 @@
#include <process.h>
#endif
#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
/* For get_backtrace() */
#include <stdlib.h>
#include <string.h>
#include <execinfo.h>
#endif
#include <cairo.h>
#include <gegl.h>
#include <gobject/gvaluecollector.h>

View File

@ -100,12 +100,13 @@ libgimpbase_introspectable = [
libgimpbase_headers_introspectable,
]
optional_libexecinfo = cc.find_library('execinfo', required: false)
libgimpbase = library('gimpbase-' + gimp_api_version,
libgimpbase_sources,
include_directories: rootInclude,
dependencies: [
gexiv2, gio, math,
gexiv2, gio, math, optional_libexecinfo
],
c_args: [
'-DG_LOG_DOMAIN="LibGimpBase"',