mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
Ports: Patch sqlite's configure script to let it build as a shared lib
By telling the libtool-related configure checks that the serenity platform does in fact support shared libs, we can get a VERSYM-free shared lib out of sqlite. This probably applies to other ports as well. Suggested-by: Daniel Bertalan <dani@danielbertalan.dev>
This commit is contained in:
parent
5871072ed3
commit
0a04f4ae86
2 changed files with 23 additions and 5 deletions
|
@ -5,8 +5,3 @@ version="3350500"
|
|||
files="https://www.sqlite.org/2021/sqlite-autoconf-${version}.tar.gz sqlite-autoconf-${version}.tar.gz f52b72a5c319c3e516ed7a92e123139a6e87af08a2dc43d7757724f6132e6db0"
|
||||
auth_type=sha256
|
||||
workdir="sqlite-autoconf-${version}"
|
||||
|
||||
post_install() {
|
||||
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsqlite3.so -Wl,-soname,libsqlite3.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsqlite3.a -Wl,--no-whole-archive
|
||||
rm ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsqlite3.la
|
||||
}
|
||||
|
|
23
Ports/sqlite/patches/configure.patch
Normal file
23
Ports/sqlite/patches/configure.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
--- sqlite-autoconf-3350500/configure 2021-04-19 20:56:40.000000000 +0200
|
||||
+++ sqlite-autoconf-port/configure 2022-01-08 10:07:29.108097826 +0100
|
||||
@@ -11069,6 +11069,8 @@
|
||||
hardcode_shlibpath_var=no
|
||||
;;
|
||||
|
||||
+ serenity*)
|
||||
+ ;;
|
||||
*)
|
||||
ld_shlibs=no
|
||||
;;
|
||||
--- sqlite-autoconf-3350500/configure 2022-01-08 10:08:22.185276101 +0100
|
||||
+++ sqlite-autoconf-port/configure 2022-01-08 10:09:52.836148833 +0100
|
||||
@@ -12151,6 +12151,8 @@
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
;;
|
||||
|
||||
+serenity*)
|
||||
+ ;;
|
||||
*)
|
||||
dynamic_linker=no
|
||||
;;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue