We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents adbc917 + 0eaad14 commit 76143d7Copy full SHA for 76143d7
pythonforandroid/recipes/cryptography/__init__.py
@@ -1,4 +1,5 @@
1
from pythonforandroid.recipe import CompiledComponentsPythonRecipe
2
+from os.path import join
3
4
5
class CryptographyRecipe(CompiledComponentsPythonRecipe):
@@ -14,9 +15,11 @@ def get_recipe_env(self, arch):
14
15
openssl_dir = r.get_build_dir(arch.arch)
16
# Set linker to use the correct gcc
17
env['LDSHARED'] = env['CC'] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
18
+ env['CFLAGS'] += ' -I' + join(openssl_dir, 'include')
19
env['LDFLAGS'] += ' -L' + openssl_dir + \
20
' -lssl' + r.version + \
21
' -lcrypto' + r.version
22
+
23
return env
24
25
0 commit comments