diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-01-08 05:33:27 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-08 18:56:29 +0100 |
commit | 0a04f4ae867fb9b45a2caae4b1b8ba5cc70e1d25 (patch) | |
tree | 6623ac693bde48aa1eafd858a77e559f197d580d /Ports/sqlite | |
parent | 5871072ed3f7b7f4c2492828e1ad7fe167cd16bd (diff) | |
download | serenity-0a04f4ae867fb9b45a2caae4b1b8ba5cc70e1d25.zip |
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>
Diffstat (limited to 'Ports/sqlite')
-rwxr-xr-x | Ports/sqlite/package.sh | 5 | ||||
-rw-r--r-- | Ports/sqlite/patches/configure.patch | 23 |
2 files changed, 23 insertions, 5 deletions
diff --git a/Ports/sqlite/package.sh b/Ports/sqlite/package.sh index 14998f8d2c..82e00096d2 100755 --- a/Ports/sqlite/package.sh +++ b/Ports/sqlite/package.sh @@ -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 -} diff --git a/Ports/sqlite/patches/configure.patch b/Ports/sqlite/patches/configure.patch new file mode 100644 index 0000000000..ea8793e108 --- /dev/null +++ b/Ports/sqlite/patches/configure.patch @@ -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 + ;; + |