Skip to content

Commit 76143d7

Browse files
authored
Merge pull request kivy#1394 from goffi-contrib/cryptography_fix
cryptography: add missing include flag [pyconfr18]
2 parents adbc917 + 0eaad14 commit 76143d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pythonforandroid/recipes/cryptography/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from pythonforandroid.recipe import CompiledComponentsPythonRecipe
2+
from os.path import join
23

34

45
class CryptographyRecipe(CompiledComponentsPythonRecipe):
@@ -14,9 +15,11 @@ def get_recipe_env(self, arch):
1415
openssl_dir = r.get_build_dir(arch.arch)
1516
# Set linker to use the correct gcc
1617
env['LDSHARED'] = env['CC'] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
18+
env['CFLAGS'] += ' -I' + join(openssl_dir, 'include')
1719
env['LDFLAGS'] += ' -L' + openssl_dir + \
1820
' -lssl' + r.version + \
1921
' -lcrypto' + r.version
22+
2023
return env
2124

2225

0 commit comments

Comments
 (0)