Changeset 66cf8d2 for chapter05


Ignore:
Timestamp:
11/15/2005 01:40:11 AM (19 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Children:
48553c1
Parents:
e87fabea
Message:

Merged 7152, 7153 to alphabetical branch

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/alphabetical/BOOK@7154 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter05
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter05/adjusting.xml

    re87fabea r66cf8d2  
    7777<!-- && used to ease copy and pasting -->
    7878<screen><userinput>GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include &amp;&amp;
    79 find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rf '{}' \; &amp;&amp;
     79find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; &amp;&amp;
    8080rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` &amp;&amp;
    8181unset GCC_INCLUDEDIR</userinput></screen>
  • chapter05/gettext.xml

    re87fabea r66cf8d2  
    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.