From 6a6ab2475906635fcc5ba0c73182fae73c4f7ee8 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 2 Oct 2020 17:28:18 -0400 Subject: meson: Fix cross build with Android NDK Android NDK does not contain execinfo.h so malloc-stats.c cannot be built. --- util/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/meson.build b/util/meson.build index 6982ad758..d96706c36 100644 --- a/util/meson.build +++ b/util/meson.build @@ -58,7 +58,7 @@ foreach util : cairo_utils ) endforeach -if cc.has_header_symbol('malloc.h', '__malloc_hook') +if cc.has_header_symbol('malloc.h', '__malloc_hook') and cc.has_header('execinfo.h') libmallocstats = library('malloc-stats', 'malloc-stats.c') endif -- cgit v1.2.1