Ignore:
Timestamp:
11/15/2005 12:53:24 AM (18 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
feaa22c
Parents:
ac1d807
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/gettext.xml

    rac1d807 rba098b6  
    2828<title>Installation of Gettext</title>
    2929
     30<para>For our temporary set of tools, we only need to build and install one binary from gettext.</para>
     31
    3032<para>Prepare Gettext for compilation:</para>
    3133
    32 <screen><userinput>./configure --prefix=/tools --disable-libasprintf \
    33     --without-csharp</userinput></screen>
     34<screen><userinput>cd gettext-tools
     35./configure --prefix=/tools --disable-shared</userinput></screen>
    3436
    3537<para>The meaning of the configure options:</para>
     
    3739<variablelist>
    3840<varlistentry>
    39 <term><parameter>--disable-libasprintf</parameter></term>
    40 <listitem><para>This flag tells Gettext not to build the
    41 <filename class="libraryfile">asprintf</filename> library. Because nothing in this
    42 chapter or the next requires this library and Gettext gets rebuilt later,
    43 exclude it to save time and space.</para></listitem>
    44 </varlistentry>
    45 
    46 <varlistentry>
    47 <term><parameter>--without-csharp</parameter></term>
    48 <listitem><para>This ensures that Gettext does not build support for the C#
    49 compiler which may be present on the host but will not be available once we
    50 enter the <command>chroot</command> environment.</para></listitem>
     41<term><parameter>--disable-shared</parameter></term>
     42<listitem><para>We are not installing any of the gettext libraries at this
     43time so we need to build <command>msgfmt</command> as a static binary.</para></listitem>
    5144</varlistentry>
    5245</variablelist>
     
    5447<para>Compile the package:</para>
    5548
    56 <screen><userinput>make</userinput></screen>
     49<screen><userinput>make -C lib
     50make -C src msgfmt</userinput></screen>
    5751
    58 <para>To test the results, issue: <userinput>make check</userinput>.
    59 This takes quite some time, around 7 SBUs. The Gettext test suite is
    60 known to experience failures under certain host conditions, for
    61 example when it finds a Java compiler on the host.  An experimental
    62 patch to disable Java is available from the LFS Patches project at
    63 <ulink url="&lfs-root;patches/"/>.</para>
     52<para>Install the single static binary:</para>
    6453
    65 <para>Install the package:</para>
    66 
    67 <screen><userinput>make install</userinput></screen>
     54<screen><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
    6855
    6956</sect2>
Note: See TracChangeset for help on using the changeset viewer.