1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 02:47:35 +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

@ -6,9 +6,3 @@ files="https://ftpmirror.gnu.org/gettext/gettext-${version}.tar.gz gettext-${ver
depends=("libiconv")
use_fresh_config_sub='true'
config_sub_paths=("build-aux/config.sub" "libtextstyle/build-aux/config.sub")
install() {
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
${CC} -shared -pthread -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libintl.so -Wl,-soname,libintl.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libintl.a -Wl,--no-whole-archive -liconv
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libintl.la
}