Ignore:
Timestamp:
05/03/2020 09:02:51 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
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, 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:
a715dec
Parents:
9d719e2
Message:

Make the new book

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/findutils.xml

    r9d719e2 refcb393  
    4343  <sect2 role="installation">
    4444    <title>Installation of Findutils</title>
    45 <!--
    46     <para>First, make some fixes required by glibc-2.28:</para>
    4745
    48 <screen><userinput remap="pre">sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' gl/lib/*.c
    49 sed -i '/unistd/a #include &lt;sys/sysmacros.h&gt;' gl/lib/mountlist.c
    50 echo "#define _IO_IN_BACKUP 0x100" >> gl/lib/stdio-impl.h</userinput></screen>
    51 -->
    5246    <para>Prepare Findutils for compilation:</para>
    5347
    54 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>
     48<screen><userinput remap="configure">./configure --prefix=/usr   \
     49            --host=$LFS_TGT \
     50            --build=$(build-aux/config.guess)</userinput></screen>
    5551
    5652    <para>Compile the package:</para>
     
    5854<screen><userinput remap="make">make</userinput></screen>
    5955
    60     <para>Compilation is now complete. As discussed earlier, running the test
    61     suite is not mandatory for the temporary tools here in this chapter. To run
    62     the Findutils test suite anyway, issue the following command:</para>
    63 
    64 <screen><userinput remap="test">make check</userinput></screen>
    65 
    6656    <para>Install the package:</para>
    6757
    68 <screen><userinput remap="install">make install</userinput></screen>
     58<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
     59
     60    <para>Move the excutable to its final expected location:</para>
     61
     62<screen><userinput remap="install">mv -v $LFS/usr/bin/find $LFS/bin
     63sed -i 's|find:=${BINDIR}|find:=/bin|' $LFS/usr/bin/updatedb</userinput></screen>
    6964
    7065  </sect2>
Note: See TracChangeset for help on using the changeset viewer.