Changeset 318e3c8 for chapter06


Ignore:
Timestamp:
10/02/2003 01:14:47 AM (21 years ago)
Author:
Greg Schafer <greg@…>
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.0, 6.1, 6.1.1, 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, v5_0, v5_1, v5_1_1, 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:
5331519
Parents:
a985250
Message:

Chapter 6: Reinstate INSTALL=/tools/bin/install for linker adjustment command. Also remove now redundant install symlinks.

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

Location:
chapter06
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter06/adjustingtoolchain.xml

    ra985250 r318e3c8  
    1313<filename class="directory">binutils-build</filename> directory:</para>
    1414
    15 <para><screen><userinput>make -C ld install</userinput></screen></para>
     15<para><screen><userinput>make -C ld INSTALL=/tools/bin/install install</userinput></screen></para>
    1616
    1717<para>From now on every compiled program will link <emphasis>only</emphasis>
    18 against the libraries in <filename>/usr/lib</filename> and <filename>/lib
    19 </filename>.</para>
     18against the libraries in <filename>/usr/lib</filename> and
     19<filename>/lib</filename>. The extra
     20<userinput>INSTALL=/tools/bin/install</userinput> is needed because the Makefile
     21created during the second pass still contains the reference to
     22<filename>/usr/bin/install</filename>, which we obviously haven't installed yet.
     23Some host distributions contain a <filename class="symlink">ginstall</filename>
     24symbolic link which takes precedence in the Makefile and thus can cause a
     25problem here. The above command takes care of this also.</para>
    2026
    2127<para>You can now remove the Binutils source and build directories.</para>
  • chapter06/createfiles.xml

    ra985250 r318e3c8  
    99
    1010<para><screen><userinput>ln -s /tools/bin/{bash,pwd,cat,stty} /bin
    11 ln -s /tools/bin/{perl,install} /usr/bin
     11ln -s /tools/bin/perl /usr/bin
    1212ln -s /tools/lib/libgcc_s.so.1 /usr/lib
    13 ln -s bash /bin/sh
    14 ln -s ../usr/bin/install /bin</userinput></screen></para>
     13ln -s bash /bin/sh</userinput></screen></para>
    1514
    1615</sect1>
  • chapter06/shadowpwd-inst.xml

    ra985250 r318e3c8  
    2828within the binary itself, but does this the wrong way. If a
    2929<userinput>passwd</userinput> binary is not present before installing Shadow,
    30 the package wrongly assumes it is going to be located at
     30the package incorrectly assumes it is going to be located at
    3131<filename>/bin/passwd</filename>, but then installs it in
    32 <filename>/usr/bin/passwd</filename>. This will lead to weird errors about not
    33 finding <filename>/bin/passwd</filename>. To work around this bug, create a
    34 dummy <filename>passwd</filename> file, so that it gets hard-wired
    35 properly:</para>
     32<filename>/usr/bin/passwd</filename>. This will lead to errors about not finding
     33<filename>/bin/passwd</filename>. To work around this bug, create a dummy
     34<filename>passwd</filename> file, so that it gets hard-wired properly:</para>
    3635
    3736<para><screen><userinput>touch /usr/bin/passwd</userinput></screen></para>
Note: See TracChangeset for help on using the changeset viewer.