Last change
on this file since c25b963 was 9ab6faf, checked in by Maarten Lankhorst <m.b.lankhorst@…>, 18 years ago |
Export build variables permanently in chapter 6
|
-
Property mode
set to
100644
|
File size:
791 bytes
|
Line | |
---|
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-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 |
|
---|
16 | <screen><userinput>cat << "EOF" >> ~/.bashrc
|
---|
17 | <literal>export CC="${CLFS_TARGET}-gcc"
|
---|
18 | export CXX="${CLFS_TARGET}-g++"
|
---|
19 | export AR="${CLFS_TARGET}-ar"
|
---|
20 | export AS="${CLFS_TARGET}-as"
|
---|
21 | export RANLIB="${CLFS_TARGET}-ranlib"
|
---|
22 | export LD="${CLFS_TARGET}-ld"
|
---|
23 | export STRIP="${CLFS_TARGET}-strip"</literal>
|
---|
24 | EOF
|
---|
25 | source ~/.bashrc
|
---|
26 | </userinput></screen>
|
---|
27 |
|
---|
28 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.