1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 03:57:45 +00:00

Ports/gettext: Replace manually linking libintl with a libtool patch

The `gettext` port comprises of multiple libraries, however `libintl.so`
is the one most commonly used in external executables/libraries, so
porting the patches to this one is enough.
This commit is contained in:
Daniel Bertalan 2023-08-01 21:16:22 +02:00 committed by Tim Schumacher
parent e9ce317483
commit a2daed5817
4 changed files with 129 additions and 8 deletions

View file

@ -5,3 +5,22 @@
Stub out some wctype functions
## `0002-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.
This patch here is a bit more elaborate for other ports, as libintl's
configure includes the code for detecting dynamic linker characteristics
twice, and it also queries the C++ compiler for shared library support.