Re: Build versionless .so for Android

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Matthias Kuhn <matthias@opengis.ch>
Cc: pgsql-hackers@lists.postgresql.org, Andres Freund <andres@anarazel.de>
Date: 2024-01-23T19:42:54Z
Lists: pgsql-hackers
On 19.01.24 18:12, Matthias Kuhn wrote:
> Thanks,
> 
> This patch brought it further and indeed, the resulting libpq.so file is 
> unversioned when built for Android while it's versioned when built for 
> linux.

Ok, I have committed all of this now:

- Fix for correct order of host_system and portname assignment in 
meson.build.

- Patch from Andres to map android to linux in meson.build.

- Makefile.shlib support for Android (based on your patch, but I 
reworked it a bit).

So this should all work for you now.




Commits

  1. Support shared libraries on Android (using make)

  2. meson: Map host_system android to linux

  3. meson: portname was set too early