Skip to content

Commit fe620f3

Browse files
committed
fixes libcurl with openssl
1 parent dd69749 commit fe620f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pythonforandroid/recipes/libcurl/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ def build_arch(self, arch):
1717
super(LibcurlRecipe, self).build_arch(arch)
1818
env = self.get_recipe_env(arch)
1919

20-
r = self.get_recipe('openssl', self.ctx)
21-
openssl_dir = r.get_build_dir(arch.arch)
20+
openssl_recipe = self.get_recipe('openssl', self.ctx)
21+
openssl_dir = openssl_recipe.get_build_dir(arch.arch)
22+
23+
env['LDFLAGS'] += openssl_recipe.link_dirs_flags(arch)
24+
env['LIBS'] = env.get('LIBS', '') + openssl_recipe.link_libs_flags()
2225

2326
with current_directory(self.get_build_dir(arch.arch)):
2427
dst_dir = join(self.get_build_dir(arch.arch), 'dist')

0 commit comments

Comments
 (0)