source: final-preps/creatingcrossdir.xml @ bdc79fd

Last change on this file since bdc79fd was bdc79fd, checked in by Jim Gifford <clfs@…>, 17 years ago

r858@server (orig r856): jim | 2005-12-06 16:11:45 -0800

r988@server: jim | 2005-12-06 16:11:30 -0800
Forgot to change the user information in cross-tools change

  • Property mode set to 100644
File size: 1.7 KB
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3  "" [
4  <!ENTITY % general-entities SYSTEM "../general.ent">
5  %general-entities;
8<sect1 id="ch-final-preps-creatingcrossdir">
9  <?dbhtml filename="creatingcrossdir.html"?>
11  <title>Creating the $LFS/cross-tools Directory</title>
13  <para>All programs compiled in <xref linkend="chapter-cross-tools"/> will
14  be installed under <filename class="directory">$LFS/cross-tools</filename>
15  to keep them separate from the host programs. The programs compiled here are
16  cross tools and will not be a part of the final LFS system. By keeping these
17  programs in a separate directory, they can easily be discarded later after
18  their use.</para>
20  <para>Create the required directory by running the following as
21  <systemitem class="username">root</systemitem>:</para>
23<screen><userinput>install -d $LFS/cross-tools</userinput></screen>
25  <para>The next step is to create a <filename
26  class="symlink">/cross-tools</filename> symlink on the host system.
27  This will point to the newly-created directory in your home directory.
28  Since normal users will not have permissions to write to the root tree,
29  we need to exit the <command>su</command> and run the symlink command as
30  <systemitem class="username">root</systemitem>:</para>
32<screen><userinput>ln -s $LFS/cross-tools /</userinput></screen>
34  <para>The created symlink enables the toolchain to be compiled so that
35  it always refers to <filename class="directory">/cross-tools</filename>,
36  meaning that the compiler, assembler, and linker will be avaialble for
37  use later if some unforseen circumstances happen.</para>
Note: See TracBrowser for help on using the repository browser.