Last change
on this file since 5846de5 was
e2ce6d78,
checked in by Andrew Bradford <andrew@…>, 10 years ago
|
Move setting toolchain vars to cross-tools
So that once you have built a toolchain, you can always go back to the
"Building the CLFS System" section, delete your targetfs dir, and start
over building for a target, again.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[8520e58] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ |
---|
[8520e58] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent"> |
---|
| 5 | %general-entities; |
---|
| 6 | ]> |
---|
| 7 | |
---|
| 8 | <sect1 id="ch-system-toolchain"> |
---|
| 9 | <?dbhtml filename="toolchain.html"?> |
---|
| 10 | |
---|
| 11 | <title>ToolChain Variables</title> |
---|
| 12 | |
---|
| 13 | <para>Setup target-specific variables for the compiler |
---|
| 14 | and linkers. This time we keep them:</para> |
---|
| 15 | |
---|
[3ca2208] | 16 | <screen><userinput>echo <literal>export CC=\""${CLFS_TARGET}-gcc\""</literal> >> ~/.bashrc |
---|
| 17 | echo <literal>export CXX=\""${CLFS_TARGET}-g++\""</literal> >> ~/.bashrc |
---|
| 18 | echo <literal>export AR=\""${CLFS_TARGET}-ar\""</literal> >> ~/.bashrc |
---|
| 19 | echo <literal>export AS=\""${CLFS_TARGET}-as\""</literal> >> ~/.bashrc |
---|
| 20 | echo <literal>export LD=\""${CLFS_TARGET}-ld\""</literal> >> ~/.bashrc |
---|
| 21 | echo <literal>export RANLIB=\""${CLFS_TARGET}-ranlib\""</literal> >> ~/.bashrc |
---|
| 22 | echo <literal>export READELF=\""${CLFS_TARGET}-readelf\""</literal> >> ~/.bashrc |
---|
| 23 | echo <literal>export STRIP=\""${CLFS_TARGET}-strip\""</literal> >> ~/.bashrc |
---|
| 24 | source ~/.bashrc</userinput></screen> |
---|
[8520e58] | 25 | |
---|
| 26 | </sect1> |
---|
Note: See
TracBrowser
for help on using the repository browser.