Hi Arsen, > On 28 Oct 2023, at 10:22, Arsen Arsenović <ar...@aarsen.me> wrote:
> Andrew Pinski <pins...@gmail.com> writes: > >> One comment from me. It would be nice to update install.texi in >> gcc/doc/ to make a mention of this requirement for non-glibc hosts. > > What do you think of the following: The hiccup for me is that we need to mention that libintl is provided by a package with a different name, that might not be obvious to someone unfamiliar with this. > > > diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi > index a17016cd8977..e5137f9d7a1b 100644 > --- a/gcc/doc/install.texi > +++ b/gcc/doc/install.texi > @@ -2215,6 +2215,11 @@ which lets GCC output diagnostics in languages other > than American > English. Native Language Support is enabled by default if not doing a > canadian cross build. The @option{--disable-nls} option disables NLS@. > > +Note that this functionality requires either libintl or C standard > +library that contains support for gettext (such as the GNU C Library). s/gettext/NLS/ +If your installation does not provide either, libibtl can be provided by the gettext package > +@xref{with-included-gettext,,--with-included-gettext} for more “see …" > +information on the conditions required to get gettext support. information on the options for providing gettext {as part of the build?} Iain > + > @item --with-libintl-prefix=@var{dir} > @itemx --without-libintl-prefix > Searches for libintl in @file{@var{dir}/include} and > @@ -2225,6 +2230,7 @@ linker handle it. > Specifies the type of library to search for when looking for libintl. > @var{type} can be one of @code{auto}, @code{static} or @code{shared}. > > +@anchor{with-included-gettext} > @item --with-included-gettext > Only available if @file{gettext} is present in the source tree. > > Thanks. > -- > Arsen Arsenović