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