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 |
|
---|
18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
19 | href="../../final-system/common/gettext.xml"
|
---|
20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
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 |
|
---|
30 | <para>Prepare Gettext for compilation:</para>
|
---|
31 |
|
---|
32 | <screen><userinput>./configure --prefix=/tools \
|
---|
33 | --host=${LFS_TARGET} --disable-libasprintf \
|
---|
34 | --without-csharp --cache-file=config.cache</userinput></screen>
|
---|
35 |
|
---|
36 | <variablelist os="c">
|
---|
37 | <title>The meaning of the configure options:</title>
|
---|
38 |
|
---|
39 | <varlistentry os="c1">
|
---|
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 |
|
---|
50 | <varlistentry os="c2">
|
---|
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 |
|
---|
61 | <para>Compile the package:</para>
|
---|
62 |
|
---|
63 | <screen><userinput>make</userinput></screen>
|
---|
64 |
|
---|
65 | <para>Install the package:</para>
|
---|
66 |
|
---|
67 | <screen><userinput>make install</userinput></screen>
|
---|
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>
|
---|