aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@linuxfromscratch.org>2005-11-15 00:53:24 +0000
committerJeremy Huntwork <jhuntwork@linuxfromscratch.org>2005-11-15 00:53:24 +0000
commitba098b62b0afc86a89e278aef2633a0c46dcf538 (patch)
treec64765a5c7ef57faab775c8bd6c9d0e19079e323 /chapter05
parentac1d807e5b0000b359cc0e5f31519c3d57b93569 (diff)
Reduce commands for gettext in chapter 5. Thanks to Greg Schafer.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7152 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/gettext.xml35
1 files changed, 11 insertions, 24 deletions
diff --git a/chapter05/gettext.xml b/chapter05/gettext.xml
index 7957209ac..422ffb022 100644
--- a/chapter05/gettext.xml
+++ b/chapter05/gettext.xml
@@ -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>