clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since e3cda9a was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago |
r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-temp-system-variables">
|
---|
| 9 | <?dbhtml filename="variables.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Build Variables</title>
|
---|
| 12 |
|
---|
| 13 | <para>We will need to setup target specific variables for the compiler
|
---|
| 14 | and linkers:</para>
|
---|
| 15 |
|
---|
| 16 | <screen><userinput>export CC="${LFS_TARGET}-gcc"
|
---|
| 17 | export CXX="${LFS_TARGET}-g++"
|
---|
| 18 | export AR="${LFS_TARGET}-ar"
|
---|
| 19 | export AS="${LFS_TARGET}-as"
|
---|
| 20 | export RANLIB="${LFS_TARGET}-ranlib"
|
---|
| 21 | export LD="${LFS_TARGET}-ld"
|
---|
| 22 | export STRIP="${LFS_TARGET}-strip"</userinput></screen>
|
---|
| 23 |
|
---|
| 24 | <para>Lets add the build variables to <filename>~/.bashrc</filename> to
|
---|
| 25 | prevent issues if we stop and come back later:</para>
|
---|
| 26 |
|
---|
| 27 | <screen><userinput>echo export CC=\""${CC}\"" >> ~/.bashrc
|
---|
| 28 | echo export CXX=\""${CXX}\"" >> ~/.bashrc
|
---|
| 29 | echo export AR=\""${AR}\"" >> ~/.bashrc
|
---|
| 30 | echo export AS=\""${AS}\"" >> ~/.bashrc
|
---|
| 31 | echo export RANLIB=\""${RANLIB}\"" >> ~/.bashrc
|
---|
| 32 | echo export LD=\""${LD}\"" >> ~/.bashrc
|
---|
| 33 | echo export STRIP=\""${STRIP}\"" >> ~/.bashrc</userinput></screen>
|
---|
| 34 |
|
---|
| 35 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.