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/coreutils.xml

    r9d719e2 refcb393  
    4646    <para>Prepare Coreutils for compilation:</para>
    4747
    48 <screen><userinput remap="configure">./configure --prefix=/tools --enable-install-program=hostname</userinput></screen>
     48<screen><userinput remap="configure">./configure --prefix=/usr                     \
     49            --host=$LFS_TGT                   \
     50            --build=$(build-aux/config.guess) \
     51            --enable-install-program=hostname \
     52            --enable-no-install-program=kill,uptime</userinput></screen>
    4953
    5054    <variablelist>
     
    6569<screen><userinput remap="make">make</userinput></screen>
    6670
    67     <para>Compilation is now complete. As discussed earlier, running the test
    68     suite is not mandatory for the temporary tools here in this chapter. To run
    69     the Coreutils test suite anyway, issue the following command:</para>
    70 
    71 <screen><userinput remap="test">make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>
    72 
    73     <para>The <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the
    74     test suite to run several additional tests that are considered
    75     relatively expensive (in terms of CPU power and memory usage) on some
    76     platforms, but generally are not a problem on Linux.</para>
    77 
    7871    <para>Install the package:</para>
    7972
    80 <screen><userinput remap="install">make install</userinput></screen>
     73<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    8174<!--
    8275    <para>The above command refuses to install <filename>su</filename>
     
    8780<screen><userinput remap="install">cp -v src/su /tools/bin</userinput></screen>
    8881-->
     82    <para>Move programs to their final expected locations. Although this is
     83    not necessary in this temporary environment, we must do so because some
     84    programs harcode executable locations:</para>
     85
     86<screen><userinput remap="install">mv -v $LFS/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $LFS/bin
     87mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $LFS/bin
     88mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname} $LFS/bin
     89mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
     90mkdir -pv $LFS/usr/share/man/man8
     91mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
     92sed -i s/\"1\"/\"8\"/1 $LFS/usr/share/man/man8/chroot.8
     93mv -v $LFS/usr/bin/{head,nice,sleep,touch} $LFS/bin</userinput></screen>
     94
    8995  </sect2>
    9096
Note: See TracChangeset for help on using the changeset viewer.