Skip to content

Commit

Permalink
Move libraries from LDFLAGS to LIBS for pycrypto recipe
Browse files Browse the repository at this point in the history
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
  • Loading branch information
opacam committed Jan 15, 2019
1 parent d49346b commit 3e7b898
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pythonforandroid/recipes/pycrypto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ def get_recipe_env(self, arch=None, clang=True):
openssl_recipe = Recipe.get_recipe('openssl', self.ctx)
env['CC'] = env['CC'] + openssl_recipe.include_flags(arch)

env['LDFLAGS'] = env['LDFLAGS'] + ' -L{}'.format(
self.ctx.get_libs_dir(arch.arch) +
'-L{}'.format(self.ctx.libs_dir)) + openssl_recipe.link_flags(arch)
env['LDFLAGS'] += ' -L{}'.format(self.ctx.get_libs_dir(arch.arch))
env['LDFLAGS'] += ' -L{}'.format(self.ctx.libs_dir)
env['LDFLAGS'] += openssl_recipe.link_dirs_flags(arch)
env['LIBS'] = openssl_recipe.link_libs_flags()

env['EXTRA_CFLAGS'] = '--host linux-armv'
env['ac_cv_func_malloc_0_nonnull'] = 'yes'
Expand Down

0 comments on commit 3e7b898

Please sign in to comment.