buildsys: android apk do not support soversion

This commit is contained in:
leleliu008 2022-01-02 10:24:37 +08:00 committed by Eric Biggers
parent 88d45c7e1c
commit fcafa11201

View File

@ -119,6 +119,13 @@ else ifneq ($(findstring -darwin,$(shell $(CC) -dumpmachine 2>/dev/null)),)
SHARED_LIB_CFLAGS := -fPIC
SHARED_LIB_LDFLAGS := -install_name $(SHARED_LIB)
# Android?
else ifneq ($(findstring -android,$(shell $(CC) -dumpmachine 2>/dev/null)),)
SHARED_LIB := libdeflate.so
SHARED_LIB_SYMLINK :=
SHARED_LIB_CFLAGS := -fPIC
SHARED_LIB_LDFLAGS := -Wl,-soname=$(SHARED_LIB)
# Linux, FreeBSD, etc.
else
SHARED_LIB := libdeflate.so.$(SOVERSION)