From 0eaad1439e0d818a18ffd146c4d81c941ba6fc4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Poisson?= Date: Fri, 5 Oct 2018 16:50:41 +0200 Subject: [PATCH] cryptography: add missing include flag an include has been mistakenly removed in cbe9e8e019196c65d563c85052df8722847f0217 resulting in compilation error (a header can't be found). This patch fixes this. --- pythonforandroid/recipes/cryptography/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pythonforandroid/recipes/cryptography/__init__.py b/pythonforandroid/recipes/cryptography/__init__.py index b5de84f3a3..0429cc3524 100644 --- a/pythonforandroid/recipes/cryptography/__init__.py +++ b/pythonforandroid/recipes/cryptography/__init__.py @@ -1,4 +1,5 @@ from pythonforandroid.recipe import CompiledComponentsPythonRecipe +from os.path import join class CryptographyRecipe(CompiledComponentsPythonRecipe): @@ -14,9 +15,11 @@ def get_recipe_env(self, arch): openssl_dir = r.get_build_dir(arch.arch) # Set linker to use the correct gcc env['LDSHARED'] = env['CC'] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions' + env['CFLAGS'] += ' -I' + join(openssl_dir, 'include') env['LDFLAGS'] += ' -L' + openssl_dir + \ ' -lssl' + r.version + \ ' -lcrypto' + r.version + return env