Last change
on this file since 6ccdfb4 was cc8d737, checked in by Joe Ciccone <jciccone@…>, 16 years ago |
Use cat instead of echo wherever possible.
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[c439b8a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[02095ae] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-final-system-variables">
|
---|
| 9 | <?dbhtml filename="variables.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Build Variables</title>
|
---|
| 12 |
|
---|
| 13 | <para>Setup target-specific variables for the compiler
|
---|
| 14 | and linkers:</para>
|
---|
| 15 |
|
---|
[586feb7] | 16 | <screen><userinput>export CC="${CLFS_TARGET}-gcc"
|
---|
| 17 | export CXX="${CLFS_TARGET}-g++"
|
---|
| 18 | export AR="${CLFS_TARGET}-ar"
|
---|
| 19 | export AS="${CLFS_TARGET}-as"
|
---|
| 20 | export RANLIB="${CLFS_TARGET}-ranlib"
|
---|
| 21 | export LD="${CLFS_TARGET}-ld"
|
---|
| 22 | export STRIP="${CLFS_TARGET}-strip"</userinput></screen>
|
---|
[02095ae] | 23 |
|
---|
| 24 | <para>Then add the build variables to <filename>~/.bashrc</filename> to
|
---|
| 25 | prevent issues if you stop and come back later:</para>
|
---|
| 26 |
|
---|
[cc8d737] | 27 | <screen><userinput>cat > config.cache << EOF
|
---|
| 28 | export CC="${CC}"
|
---|
| 29 | export CXX="${CXX}"
|
---|
| 30 | export AR="${AR}"
|
---|
| 31 | export AS="${AS}"
|
---|
| 32 | export RANLIB="${RANLIB}"
|
---|
| 33 | export LD="${LD}"
|
---|
| 34 | export STRIP="${STRIP}"
|
---|
| 35 | EOF</userinput></screen>
|
---|
[02095ae] | 36 |
|
---|
| 37 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.