- Timestamp:
- Jun 9, 2006, 8:58:00 PM (19 years ago)
- Branches:
- master
- Children:
- 8f2279f
- Parents:
- 7a47cec
- Location:
- BOOK
- Files:
-
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/binutils.xml
r7a47cec r2ad9b71 48 48 xpointer="xpointer(//*[@os='c'])"/> 49 49 50 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix= /cross-tools \50 <screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=${LFS}/cross-tools \ 51 51 --host=${LFS_HOST} --target=${LFS_TARGET} --with-sysroot=${LFS} \ 52 52 --disable-nls --enable-shared --disable-multilib</userinput></screen> … … 56 56 57 57 <varlistentry os="bd1"> 58 <term><parameter>--prefix= /cross-tools</parameter></term>58 <term><parameter>--prefix=${LFS}/cross-tools</parameter></term> 59 59 <listitem> 60 60 <para>This tells the configure script to prepare to install the 61 package in the <filename class="directory"> /cross-tools</filename>61 package in the <filename class="directory">${LFS}/cross-tools</filename> 62 62 directory.</para> 63 63 </listitem> -
BOOK/cross-tools/common/file.xml
r7a47cec r2ad9b71 19 19 <para>Prepare File for compilation:</para> 20 20 21 <screen><userinput>./configure --prefix= /cross-tools</userinput></screen>21 <screen><userinput>./configure --prefix=${LFS}/cross-tools</userinput></screen> 22 22 23 23 <para>Compile the Package:</para> -
BOOK/cross-tools/common/gcc-final.xml
r7a47cec r2ad9b71 59 59 xpointer="xpointer(//*[@os='e'])"/> 60 60 61 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix= /cross-tools \61 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \ 62 62 --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \ 63 63 --with-sysroot=${LFS} --disable-nls --enable-shared \ -
BOOK/cross-tools/common/gcc-static.xml
r7a47cec r2ad9b71 51 51 xpointer="xpointer(//*[@os='e'])"/> 52 52 53 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix= /cross-tools \53 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \ 54 54 --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \ 55 55 --with-sysroot=${LFS} --disable-nls --disable-shared \ -
BOOK/cross-tools/common/glibc.xml
r7a47cec r2ad9b71 74 74 --disable-profile --enable-add-ons \ 75 75 --with-tls --enable-kernel=2.6.0 --with-__thread \ 76 --with-binutils= /cross-tools/bin --with-headers=${LFS}/usr/include \76 --with-binutils=${LFS}/cross-tools/bin --with-headers=${LFS}/usr/include \ 77 77 --cache-file=config.cache</userinput></screen> 78 78 … … 144 144 145 145 <varlistentry os="j9"> 146 <term><parameter>--with-binutils= /cross-tools/bin</parameter></term>146 <term><parameter>--with-binutils=${LFS}/cross-tools/bin</parameter></term> 147 147 <listitem> 148 148 <para>This tells Glibc to use the Binutils that are specific to -
BOOK/final-preps/chapter.xml
r7a47cec r2ad9b71 13 13 14 14 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aboutlfs.xml"/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="creatingcrossdir.xml"/>16 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="addinguser.xml"/> 17 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="settingenviron.xml"/> -
BOOK/final-preps/settingenviron.xml
r7a47cec r2ad9b71 44 44 LFS=/mnt/lfs 45 45 LC_ALL=POSIX 46 PATH= /cross-tools/bin:/bin:/usr/bin46 PATH=${LFS}/cross-tools/bin:/bin:/usr/bin 47 47 export LFS LC_ALL PATH</literal> 48 48 EOF</userinput></screen> … … 56 56 the shell will always search the <envar>PATH</envar> when a program is to 57 57 be run. As such, the shell will find the newly compiled tools in 58 <filename class="directory">$LFS /cross-tools</filename> as soon as they are58 <filename class="directory">$LFS${LFS}/cross-tools</filename> as soon as they are 59 59 available without remembering a previous version of the same program in a 60 60 different location.</para> … … 80 80 the chroot environment.</para> 81 81 82 <para os="j">By putting <filename class="directory"> /cross-tools/bin</filename>82 <para os="j">By putting <filename class="directory">${LFS}/cross-tools/bin</filename> 83 83 at the beginning of the <envar>PATH</envar>, the cross-compiler 84 84 built in <xref linkend="chapter-cross-tools"/> will be picked up by -
BOOK/introduction/common/how.xml
r7a47cec r2ad9b71 52 52 53 53 <para>The process of building cross-compile tools first involves installing 54 binutils into /cross-tools, so that the linker can be used with the building54 binutils into ${LFS}/cross-tools, so that the linker can be used with the building 55 55 of everything else in the temp-system. GCC is then compiled statically and 56 installed into /cross-tools, and this cross-compiler is used to build glibc56 installed into ${LFS}/cross-tools, and this cross-compiler is used to build glibc 57 57 into /tools for the temp-system. The GCC cross-compiler is then rebuilt 58 58 dynamically - this final cross-compiler is what will be used to build the … … 64 64 65 65 <para>The packages in <!-- <xref linkend="chapter-temp-system"/> --> are then built 66 using the cross-compiled tools in /cross-tools, and linked against the66 using the cross-compiled tools in ${LFS}/cross-tools, and linked against the 67 67 C library that was installed during the building of the cross-tools.</para> 68 68
Note:
See TracChangeset
for help on using the changeset viewer.