mirror of
https://github.com/postgres/postgres.git
synced 2026-06-06 15:22:43 -04:00
Support shared libraries on Android (using make)
While the rest of the make build system maps Android to Linux, Android uses unversioned shared libraries (like "libpq.so"). This patch makes it so. (Meson already supported it.) Reported-by: Matthias Kuhn <matthias@opengis.ch> Discussion: https://www.postgresql.org/message-id/flat/CAC7zN94TdsHhY88XkroJzSMx7E%3DBQpV9LKKjNSEnTM04ihoWCA%40mail.gmail.com
This commit is contained in:
parent
f4447af5b1
commit
79b03dbb33
1 changed files with 5 additions and 0 deletions
|
|
@ -183,6 +183,11 @@ endif
|
|||
ifeq ($(PORTNAME), linux)
|
||||
LINK.shared = $(COMPILER) -shared
|
||||
ifdef soname
|
||||
ifneq (,$(findstring linux-android,$(host_os)))
|
||||
# Android uses unversioned shared libraries
|
||||
shlib = $(shlib_bare)
|
||||
soname = $(shlib_bare)
|
||||
endif
|
||||
LINK.shared += -Wl,-soname,$(soname)
|
||||
endif
|
||||
BUILD.exports = ( echo '{ global:'; $(AWK) '/^[^\#]/ {printf "%s;\n",$$1}' $<; echo ' local: *; };' ) >$@
|
||||
|
|
|
|||
Loading…
Reference in a new issue