From 06b98b354413cbe2e87d14cd0f6f772b12d5a0d9 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 13 Apr 2025 09:15:21 +0200 Subject: [PATCH] dev-perl/Locale-gettext: fix final object with libintl on Solaris Ensure we reference libintl from Prefix, so ld won't fail while using the object. Signed-off-by: Fabian Groffen --- .../Locale-gettext/Locale-gettext-1.70.0_p20181130.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-perl/Locale-gettext/Locale-gettext-1.70.0_p20181130.ebuild b/dev-perl/Locale-gettext/Locale-gettext-1.70.0_p20181130.ebuild index 3b68978e3b322..66a2d03468219 100644 --- a/dev-perl/Locale-gettext/Locale-gettext-1.70.0_p20181130.ebuild +++ b/dev-perl/Locale-gettext/Locale-gettext-1.70.0_p20181130.ebuild @@ -31,3 +31,9 @@ PATCHES=( "${FILESDIR}/${PN}-1.70.0-tests.patch" "${FILESDIR}/${PN}-1.70.0_p20181130-config-log.patch" ) + +src_compile() { + # Makefile.PL cannot know we use libintl over system + [[ ${CHOST} == *-solaris* ]] && export LDLOADLIBS="-lintl" + default +}