source: chapter04/creatingtoolsdir.xml@ 6a0e6f3

Last change on this file since 6a0e6f3 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-tools-creatingtoolsdir">
8<title>Creating the $LFS/tools directory</title>
9<?dbhtml filename="creatingtoolsdir.html"?>
10
11<para>All programs compiled in <xref linkend="chapter-temporary-tools"/> will be installed under <filename
12class="directory">$LFS/tools</filename> to keep them separate from the
13programs compiled in <xref linkend="chapter-building-system"/>. The programs compiled here are only
14temporary tools and won't be a part of the final LFS system and by keeping them
15in a separate directory, we can later easily throw them away. This also
16helps prevent them from ending up in your host's production directories
17(easy to do in <xref linkend="chapter-temporary-tools"/>), which could be a very bad thing.</para>
18
19<para>Later on you might wish to search through the binaries of your system to
20see what files they make use of or link against. To make this searching easier
21you may want to choose a unique name for the directory in which the temporary
22tools are stored. Instead of the simple <quote>tools</quote> you could use
23something like <quote>tools-for-lfs</quote>. However, you'll need to be careful
24to adjust all references to <quote>tools</quote> throughout the book --
25including those in any patches, notably the GCC Specs Patch.</para>
26
27<para>Create the required directory by running the following:</para>
28
29<screen><userinput>mkdir $LFS/tools</userinput></screen>
30
31<para>The next step is to create a <filename>/tools</filename> symlink on
32your <emphasis>host</emphasis> system. It will point to the directory we just created on the LFS
33partition:</para>
34
35<screen><userinput>ln -s $LFS/tools /</userinput></screen>
36
37<note><para>The above command is correct. The <command>ln</command> command
38has a few syntactic variations, so be sure to check the info page before
39reporting what you may think is an error.</para></note>
40
41<para>The created symlink enables us to compile our toolchain so that it always
42refers to <filename class="directory">/tools</filename>, meaning that the compiler, assembler
43and linker will work both in this chapter (when we are still using some tools
44from the host) <emphasis>and</emphasis> in the next (when we are <quote>chrooted</quote> to
45the LFS partition).</para>
46
47</section>
Note: See TracBrowser for help on using the repository browser.