summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/nettle.recipe4
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'),