diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-10-03 18:49:46 +0100 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-10-03 19:06:13 +0100 |
commit | 9bb909e54f63cbf328fed998d999d4a1eb29bbde (patch) | |
tree | b96ed412d72996d5ca26a886ccf7a0c3d71ce750 | |
parent | b98f0e6914fcd5b4209aad28e4e4844565dbfbf1 (diff) |
spandsp: Skip two autoconf check when cross-compiling
In cross-compilation, some autoconf check failed when they should
not which lead to link error.
https://bugzilla.gnome.org/show_bug.cgi?id=754997
-rw-r--r-- | recipes/spandsp.recipe | 5 |
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' |