[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-temp-system-gettext" role="wrap">
|
---|
| 9 | <?dbhtml filename="gettext.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Gettext-&gettext-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-temp-system-gettext">
|
---|
| 14 | <primary sortas="a-Gettext">Gettext</primary>
|
---|
| 15 | <secondary>temporary system</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
[d0c5f50] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../final-system/common/gettext.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[3f8be484] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Gettext</title>
|
---|
| 24 |
|
---|
| 25 | <para os="a">Gettext has an issue with cross-compiling where it
|
---|
| 26 | can't find getline. So we fix it here:</para>
|
---|
| 27 |
|
---|
| 28 | <screen os="b"><userinput>echo "am_cv_func_working_getline=yes" >> config.cache</userinput></screen>
|
---|
| 29 |
|
---|
[1bc8e5f] | 30 | <para os="c">Prepare Gettext for compilation:</para>
|
---|
[3f8be484] | 31 |
|
---|
[1bc8e5f] | 32 | <screen os="d"><userinput>./configure --prefix=/tools \
|
---|
[3f8be484] | 33 | --host=${LFS_TARGET} --disable-libasprintf \
|
---|
| 34 | --without-csharp --cache-file=config.cache</userinput></screen>
|
---|
| 35 |
|
---|
[1bc8e5f] | 36 | <variablelist os="e">
|
---|
[3f8be484] | 37 | <title>The meaning of the configure options:</title>
|
---|
| 38 |
|
---|
[1bc8e5f] | 39 | <varlistentry os="e1">
|
---|
[3f8be484] | 40 | <term><parameter>--disable-libasprintf</parameter></term>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>This flag tells Gettext not to build the <filename
|
---|
| 43 | class="libraryfile">asprintf</filename> library. Because
|
---|
| 44 | nothing in this chapter or the next requires this library a
|
---|
| 45 | nd Gettext gets rebuilt later, exclude it to save time
|
---|
| 46 | and space.</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | </varlistentry>
|
---|
| 49 |
|
---|
[1bc8e5f] | 50 | <varlistentry os="e2">
|
---|
[3f8be484] | 51 | <term><parameter>--without-csharp</parameter></term>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>This ensures that Gettext does not build support for the C#
|
---|
| 54 | compiler which may be present on the host but will not be available
|
---|
| 55 | when building the final system.</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </varlistentry>
|
---|
| 58 |
|
---|
| 59 | </variablelist>
|
---|
| 60 |
|
---|
[1bc8e5f] | 61 | <para os="f">Compile the package:</para>
|
---|
[3f8be484] | 62 |
|
---|
[1bc8e5f] | 63 | <screen os="g"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 64 |
|
---|
[1bc8e5f] | 65 | <para os="h">Install the package:</para>
|
---|
[3f8be484] | 66 |
|
---|
[1bc8e5f] | 67 | <screen os="i"><userinput>make install</userinput></screen>
|
---|
[3f8be484] | 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 role="content">
|
---|
| 72 | <title/>
|
---|
| 73 |
|
---|
| 74 | <para>Details on this package are located in <xref
|
---|
| 75 | linkend="contents-gettext" role="."/></para>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | </sect1>
|
---|