libxml2: Note how to remove unneeded references to ICU libraries for --with-icu

Or too many packages can link to ICU libraries w/o any real necessity
and cause upgrading ICU very nasty.
This commit is contained in:
Xi Ruoyao 2023-05-27 19:18:49 +08:00
parent 31120d7c05
commit f6061807d1
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -180,6 +180,20 @@ make</userinput></screen>
<xref linkend="icu"/>, for better unicode support.
</para>
<note>
<para>
If the <option>--with-icu</option> switch is used, it's recommended
to remove unneeded references to the ICU libraries to prevent many
packages using libxml2 from unnecessarily directly linked to the ICU
libraries, so you won't need to rebuild too many packages when you
upgrade ICU to a new major version. After installing libxml2, as
the &root; user, issue:
</para>
<screen role="nodump"><userinput>rm -vf /usr/lib/libxml2.la &amp;&amp;
sed '/libs=/s/xml2.*/xml2"/' -i /usr/bin/xml2-config</userinput></screen>
</note>
</sect2>
<sect2 role="content">