Skip to content

Commit 84b01f0

Browse files
committed
Move libraries from LDFLAGS to LIBS for cryptography recipe
Because this is how you are supposed to do it, you must use LDFLAGS for linker flags and LDLIBS (or the equivalent LOADLIBES) for the libraries
1 parent ee9c61c commit 84b01f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonforandroid/recipes/cryptography/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def get_recipe_env(self, arch):
1414

1515
openssl_recipe = Recipe.get_recipe('openssl', self.ctx)
1616
env['CFLAGS'] += openssl_recipe.include_flags(arch)
17-
env['LDFLAGS'] += openssl_recipe.link_flags(arch)
17+
env['LDFLAGS'] += openssl_recipe.link_dirs_flags(arch)
18+
env['LIBS'] = openssl_recipe.link_libs_flags()
1819

1920
return env
2021

0 commit comments

Comments
 (0)