source: BOOK/temp-system/common/variables.xml@ 3739acc

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3739acc was 0220731, checked in by Jim Gifford <clfs@…>, 19 years ago

r3559@server (orig r1624): chris | 2006-05-17 10:47:43 -0700
More text updates

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[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
[0220731]13 <para>Setup target-specific variables for the compiler
[3f8be484]14 and linkers:</para>
15
16<screen><userinput>export CC="${LFS_TARGET}-gcc"
17export CXX="${LFS_TARGET}-g++"
18export AR="${LFS_TARGET}-ar"
19export AS="${LFS_TARGET}-as"
20export RANLIB="${LFS_TARGET}-ranlib"
21export LD="${LFS_TARGET}-ld"
22export STRIP="${LFS_TARGET}-strip"</userinput></screen>
23
[6d4c909]24 <para>Then add the build variables to <filename>~/.bashrc</filename> to
25 prevent issues if you stop and come back later:</para>
[3f8be484]26
27<screen><userinput>echo export CC=\""${CC}\"" &gt;&gt; ~/.bashrc
28echo export CXX=\""${CXX}\"" &gt;&gt; ~/.bashrc
29echo export AR=\""${AR}\"" &gt;&gt; ~/.bashrc
30echo export AS=\""${AS}\"" &gt;&gt; ~/.bashrc
31echo export RANLIB=\""${RANLIB}\"" &gt;&gt; ~/.bashrc
32echo export LD=\""${LD}\"" &gt;&gt; ~/.bashrc
33echo export STRIP=\""${STRIP}\"" &gt;&gt; ~/.bashrc</userinput></screen>
34
35</sect1>
Note: See TracBrowser for help on using the repository browser.