source: clfs-embedded/BOOK/final-system/common/variables.xml@ aea05b2

Last change on this file since aea05b2 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 &lt;&lt; "EOF" &gt;&gt; ~/.bashrc
17<literal>export CC="${CLFS_TARGET}-gcc"
18export CXX="${CLFS_TARGET}-g++"
19export AR="${CLFS_TARGET}-ar"
20export AS="${CLFS_TARGET}-as"
21export RANLIB="${CLFS_TARGET}-ranlib"
22export LD="${CLFS_TARGET}-ld"
23export STRIP="${CLFS_TARGET}-strip"</literal>
24EOF
25source ~/.bashrc
26</userinput></screen>
27
28</sect1>
Note: See TracBrowser for help on using the repository browser.