summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/spandsp.recipe5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/spandsp.recipe b/recipes/spandsp.recipe
index abbeffb5..5cdad0c5 100644
--- a/recipes/spandsp.recipe
+++ b/recipes/spandsp.recipe
@@ -13,3 +13,8 @@ class Recipe(recipe.Recipe):
files_libs = ['libspandsp']
files_devel = ['include/spandsp', 'lib/pkgconfig/spandsp.pc']
+ def prepare(self):
+ # Workaround broken autoconf test in cross compilation
+ if self.config.arch != self.config.target_arch:
+ self.new_env['ac_cv_func_malloc_0_nonnull'] = 'yes'
+ self.new_env['ac_cv_func_realloc_0_nonnull'] = 'yes'