[bf8c11f] | 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 |
|
---|
[3b9c9f7] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../final-system/common/gettext.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[bf8c11f] | 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 |
|
---|
[175ff828] | 30 | <para os="c">Prepare Gettext for compilation:</para>
|
---|
[bf8c11f] | 31 |
|
---|
[2f83ef2] | 32 | <screen os="d"><userinput>cd gettext-tools
|
---|
| 33 | ./configure --prefix=/tools \
|
---|
| 34 | --host=${LFS_TARGET} --disable-shared \
|
---|
| 35 | --cache-file=config.cache</userinput></screen>
|
---|
[bf8c11f] | 36 |
|
---|
[175ff828] | 37 | <variablelist os="e">
|
---|
[bf8c11f] | 38 | <title>The meaning of the configure options:</title>
|
---|
| 39 |
|
---|
[175ff828] | 40 | <varlistentry os="e1">
|
---|
[2f83ef2] | 41 | <term><parameter>--disable-shared</parameter></term>
|
---|
[bf8c11f] | 42 | <listitem>
|
---|
[2f83ef2] | 43 | <para>This tells Gettext not to create a shared library.</para>
|
---|
[bf8c11f] | 44 | </listitem>
|
---|
| 45 | </varlistentry>
|
---|
| 46 |
|
---|
| 47 | </variablelist>
|
---|
| 48 |
|
---|
[175ff828] | 49 | <para os="f">Compile the package:</para>
|
---|
[bf8c11f] | 50 |
|
---|
[2f83ef2] | 51 | <screen os="g"><userinput>make -C lib
|
---|
| 52 | make -C src msgfmt</userinput></screen>
|
---|
[bf8c11f] | 53 |
|
---|
[175ff828] | 54 | <para os="h">Install the package:</para>
|
---|
[bf8c11f] | 55 |
|
---|
[2f83ef2] | 56 | <screen os="i"><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
|
---|
[bf8c11f] | 57 |
|
---|
| 58 | </sect2>
|
---|
| 59 |
|
---|
| 60 | <sect2 role="content">
|
---|
| 61 | <title/>
|
---|
| 62 |
|
---|
| 63 | <para>Details on this package are located in <xref
|
---|
| 64 | linkend="contents-gettext" role="."/></para>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | </sect1>
|
---|