Skip to content

Commit

Permalink
Bump libpq version (#2245)
Browse files Browse the repository at this point in the history
* bump libpq version
* Fix libpq env for cross compile
Co-authored-by: Rene Leveille <rene@nestingsafe.com>
  • Loading branch information
Rene Leveille authored Jun 25, 2020
1 parent 61be5d4 commit 96edcd6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pythonforandroid/recipes/libpq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@


class LibpqRecipe(Recipe):
version = '9.5.3'
version = '10.12'
url = 'http://ftp.postgresql.org/pub/source/v{version}/postgresql-{version}.tar.bz2'
depends = []

def get_recipe_env(self, arch):
env = super().get_recipe_env(arch)
env['USE_DEV_URANDOM'] = '1'

return env

def should_build(self, arch):
return not os.path.isfile('{}/libpq.a'.format(self.ctx.get_libs_dir(arch.arch)))

Expand Down

0 comments on commit 96edcd6

Please sign in to comment.