|
@@ -27,44 +27,31 @@
|
|
|
<sect2 role="installation">
|
|
|
<title>Installation of Gettext</title>
|
|
|
|
|
|
+<para>For our temporary set of tools, we only need to build and install one binary from gettext.</para>
|
|
|
+
|
|
|
<para>Prepare Gettext for compilation:</para>
|
|
|
|
|
|
-<screen><userinput>./configure --prefix=/tools --disable-libasprintf \
|
|
|
- --without-csharp</userinput></screen>
|
|
|
+<screen><userinput>cd gettext-tools
|
|
|
+./configure --prefix=/tools --disable-shared</userinput></screen>
|
|
|
|
|
|
<para>The meaning of the configure options:</para>
|
|
|
|
|
|
<variablelist>
|
|
|
<varlistentry>
|
|
|
-<term><parameter>--disable-libasprintf</parameter></term>
|
|
|
-<listitem><para>This flag tells Gettext not to build the
|
|
|
-<filename class="libraryfile">asprintf</filename> library. Because nothing in this
|
|
|
-chapter or the next requires this library and Gettext gets rebuilt later,
|
|
|
-exclude it to save time and space.</para></listitem>
|
|
|
-</varlistentry>
|
|
|
-
|
|
|
-<varlistentry>
|
|
|
-<term><parameter>--without-csharp</parameter></term>
|
|
|
-<listitem><para>This ensures that Gettext does not build support for the C#
|
|
|
-compiler which may be present on the host but will not be available once we
|
|
|
-enter the <command>chroot</command> environment.</para></listitem>
|
|
|
+<term><parameter>--disable-shared</parameter></term>
|
|
|
+<listitem><para>We are not installing any of the gettext libraries at this
|
|
|
+time so we need to build <command>msgfmt</command> as a static binary.</para></listitem>
|
|
|
</varlistentry>
|
|
|
</variablelist>
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
-<screen><userinput>make</userinput></screen>
|
|
|
-
|
|
|
-<para>To test the results, issue: <userinput>make check</userinput>.
|
|
|
-This takes quite some time, around 7 SBUs. The Gettext test suite is
|
|
|
-known to experience failures under certain host conditions, for
|
|
|
-example when it finds a Java compiler on the host. An experimental
|
|
|
-patch to disable Java is available from the LFS Patches project at
|
|
|
-<ulink url="&lfs-root;patches/"/>.</para>
|
|
|
+<screen><userinput>make -C lib
|
|
|
+make -C src msgfmt</userinput></screen>
|
|
|
|
|
|
-<para>Install the package:</para>
|
|
|
+<para>Install the single static binary:</para>
|
|
|
|
|
|
-<screen><userinput>make install</userinput></screen>
|
|
|
+<screen><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
|
|
|
|
|
|
</sect2>
|
|
|
|