diff options
author | Matthew Waters <matthew@centricular.com> | 2020-10-23 12:12:25 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2020-10-23 13:21:40 +1100 |
commit | 24896e12029b242a55f20318646e47318d31bfaa (patch) | |
tree | acdd08921979126320fad0a3ac73327962abcf6d | |
parent | d68864b51f788ad96440120ae47289d3163204d2 (diff) |
nettle/ios: pass -Wno-error=implicit-function-declaration for build compiler
Otherwise, nettle configure fails to find a build compiler and errors
out like so:
checking build system compiler gcc... no
checking build system compiler cc... no
checking build system compiler c89... no
checking build system compiler c99... no
configure: error: Cannot find a build system compiler
Due to the incompatible check:
conftest.c:4:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
exit(0);
^
conftest.c:4:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/648>
-rw-r--r-- | recipes/nettle.recipe | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes/nettle.recipe b/recipes/nettle.recipe index 95f493b1..00d958ae 100644 --- a/recipes/nettle.recipe +++ b/recipes/nettle.recipe @@ -25,7 +25,9 @@ class Recipe(recipe.Recipe): files_devel = ['include/nettle', 'lib/pkgconfig/nettle.pc', 'lib/pkgconfig/hogweed.pc'] def prepare(self): - self.append_env('CFLAGS', '-std=c99') + self.append_env('CFLAGS', '-std=c99') + if self.config.target_platform == Platform.IOS: + self.set_env('CC_FOR_BUILD', self.get_env('CC') + ' ' + '-Wno-error=implicit-function-declaration ') async def configure(self): shell.replace(os.path.join(self.build_dir, 'Makefile.in'), |