meson: Fix cross build with Android NDK

Android NDK does not contain execinfo.h so malloc-stats.c cannot be
built.
This commit is contained in:
Xavier Claessens 2020-10-02 17:28:18 -04:00
parent 4ea2991a40
commit 6a6ab24759

View file

@ -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