commit:     7b832e510093e97af3fada11e850725a93395244
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 10:25:29 2023 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed May 24 10:25:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b832e51

dev-libs/libxml2-2.11.4: fix compilation on Solaris

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 dev-libs/libxml2/libxml2-2.11.4.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dev-libs/libxml2/libxml2-2.11.4.ebuild 
b/dev-libs/libxml2/libxml2-2.11.4.ebuild
index 9677dea2230e..3e218fa86b8a 100644
--- a/dev-libs/libxml2/libxml2-2.11.4.ebuild
+++ b/dev-libs/libxml2/libxml2-2.11.4.ebuild
@@ -101,6 +101,10 @@ multilib_src_configure() {
        # Filter seemingly problematic CFLAGS (bug #26320)
        filter-flags -fprefetch-loop-arrays -funroll-loops
 
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               append-libs iconv
+       fi
+
        # Notes:
        # The meaning of the 'debug' USE flag does not apply to the --with-debug
        # switch (enabling the libxml2 debug module). See bug #100898.

Reply via email to