sqlite3: add legacy SONAME
authorGeorge Sapkin <redacted>
Sat, 3 May 2025 07:41:10 +0000 (10:41 +0300)
committerTianling Shen <redacted>
Sat, 3 May 2025 17:52:16 +0000 (01:52 +0800)
With no SONAME set, when linking against the full library path, that
path will be used. But if SONAME is set, it will be used instead.

Set --soname=legacy to add a SONAME to the library to allow projects
that use full path to link correctly.

Link: https://sqlite.org/src/forumpost/5a3b44f510df8ded
Fixes: https://github.com/openwrt/packages/issues/26449
Signed-off-by: George Sapkin <redacted>
libs/sqlite3/Makefile

index db25328399fb32f2152877a029a07ef056790a82..f41bd3a5cc7180cfeee8b3db7213d193f282046d 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=sqlite
 PKG_VERSION:=3.49.1
 PKG_SRC_VERSION:=3490100
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-autoconf-$(PKG_SRC_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.sqlite.org/2025/
@@ -107,6 +107,7 @@ CONFIGURE_ARGS := \
        --enable-shared \
        --enable-static \
        --enable-threadsafe \
+       --soname=legacy \
        $(if $(CONFIG_SQLITE3_DYNAMIC_EXTENSIONS),--enable-load-extension,--disable-load-extension) \
        $(if $(CONFIG_SQLITE3_FTS3),--enable-fts3,--disable-fts3) \
        $(if $(CONFIG_SQLITE3_FTS4),--enable-fts4,--disable-fts4) \
git clone https://git.99rst.org/PROJECT