summaryrefslogtreecommitdiff
path: root/Ports/libtiff/patches
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-06-03 17:07:34 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-03 20:50:01 +0100
commite3b29ef61c8bb40d821e235a20d5b42e9fbeec62 (patch)
tree98be13030beed443e3cbcc5f3a9bf1b7a2a54b62 /Ports/libtiff/patches
parentbd7bcd240797f1b74a889a39245eaa2d08f019c9 (diff)
downloadserenity-e3b29ef61c8bb40d821e235a20d5b42e9fbeec62.zip
Ports: Replace manually linking `libtiff` with a libtool patch
Diffstat (limited to 'Ports/libtiff/patches')
-rw-r--r--Ports/libtiff/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch94
-rw-r--r--Ports/libtiff/patches/ReadMe.md16
2 files changed, 110 insertions, 0 deletions
diff --git a/Ports/libtiff/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch b/Ports/libtiff/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch
new file mode 100644
index 0000000000..5804c58371
--- /dev/null
+++ b/Ports/libtiff/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch
@@ -0,0 +1,94 @@
+From 9f36cd059f2ea7ae5233519fd7f486850d623014 Mon Sep 17 00:00:00 2001
+From: Tim Schumacher <timschumi@gmx.de>
+Date: Sun, 29 May 2022 15:01:28 +0200
+Subject: [PATCH] libtool: Enable shared library support for SerenityOS
+
+For some odd reason, libtool handles the configuration for shared
+libraries entirely statically and in its configure script. If no
+shared library support is "present", building shared libraries is
+disabled entirely.
+
+Fix that by just adding the appropriate configuration options for
+`serenity`. This allows us to finally create dynamic libraries
+automatically using libtool, without having to manually link the
+static library into a shared library.
+---
+ configure | 34 ++++++++++++++++++++++++++++++++++
+ 1 file changed, 34 insertions(+)
+
+diff --git a/configure b/configure
+index 1d9918f..e1e8caa 100755
+--- a/configure
++++ b/configure
+@@ -6439,6 +6439,10 @@ tpf*)
+ os2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
++
++serenity*)
++ lt_cv_deplibs_check_method=pass_all
++ ;;
+ esac
+
+ fi
+@@ -10022,6 +10026,10 @@ lt_prog_compiler_static=
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
++ serenity*)
++ lt_prog_compiler_can_build_shared=yes
++ ;;
++
+ *)
+ lt_prog_compiler_can_build_shared=no
+ ;;
+@@ -11544,6 +11552,10 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
+ hardcode_shlibpath_var=no
+ ;;
+
++ serenity*)
++ ld_shlibs=yes
++ ;;
++
+ *)
+ ld_shlibs=no
+ ;;
+@@ -12624,6 +12636,17 @@ uts4*)
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
++serenity*)
++ version_type=linux
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix} ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
++ soname_spec='${libname}${release}${shared_ext}${major}'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=no
++ dynamic_linker='SerenityOS LibELF'
++ ;;
++
+ *)
+ dynamic_linker=no
+ ;;
+@@ -17019,6 +17042,17 @@ uts4*)
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
++serenity*)
++ version_type=linux
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix} ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
++ soname_spec='${libname}${release}${shared_ext}${major}'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=no
++ dynamic_linker='SerenityOS LibELF'
++ ;;
++
+ *)
+ dynamic_linker=no
+ ;;
+--
+2.36.1
+
diff --git a/Ports/libtiff/patches/ReadMe.md b/Ports/libtiff/patches/ReadMe.md
new file mode 100644
index 0000000000..54a371ecf1
--- /dev/null
+++ b/Ports/libtiff/patches/ReadMe.md
@@ -0,0 +1,16 @@
+# Patches for libtiff on SerenityOS
+
+## `0001-libtool-Enable-shared-library-support-for-SerenityOS.patch`
+
+libtool: Enable shared library support for SerenityOS
+
+For some odd reason, libtool handles the configuration for shared
+libraries entirely statically and in its configure script. If no
+shared library support is "present", building shared libraries is
+disabled entirely.
+
+Fix that by just adding the appropriate configuration options for
+`serenity`. This allows us to finally create dynamic libraries
+automatically using libtool, without having to manually link the
+static library into a shared library.
+