source: BOOK/temp-system/64/variables.xml@ c7e75ec

sysvinit
Last change on this file since c7e75ec was 8ffe6ef, checked in by Chris Staub <chris@…>, 11 years ago

Added BUILD64 to new page in temp-system/64, and removed it from temp-system and boot package pages

Conflicts:

BOOK/boot/mips64-64-chapter.xml
BOOK/boot/ppc64-64-chapter.xml
BOOK/boot/sparc64-64-chapter.xml
BOOK/boot/x86_64-64-chapter.xml

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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
13 <para>Setup target-specific variables for the compiler
14 and linkers:</para>
15
16<screen><userinput>export CC="${CLFS_TARGET}-gcc ${BUILD64}"
17export CXX="${CLFS_TARGET}-g++ ${BUILD64}"
18export AR="${CLFS_TARGET}-ar"
19export AS="${CLFS_TARGET}-as"
20export RANLIB="${CLFS_TARGET}-ranlib"
21export LD="${CLFS_TARGET}-ld"
22export STRIP="${CLFS_TARGET}-strip"</userinput></screen>
23
24 <variablelist os="ca">
25 <title>The meaning of the new configure options:</title>
26
27 <varlistentry os="dd1">
28 <term><parameter>CXX="${CXX} ${BUILD64}"</parameter></term>
29 <listitem>
30 <para>This forces the C++ compiler to use our 64 Bit flags.</para>
31 </listitem>
32 </varlistentry>
33
34 </variablelist>
35
36 <para>Then add the build variables to <filename>~/.bashrc</filename> to
37 prevent issues if you stop and come back later:</para>
38
39<screen><userinput>echo export CC=\""${CC}\"" &gt;&gt; ~/.bashrc
40echo export CXX=\""${CXX}\"" &gt;&gt; ~/.bashrc
41echo export AR=\""${AR}\"" &gt;&gt; ~/.bashrc
42echo export AS=\""${AS}\"" &gt;&gt; ~/.bashrc
43echo export RANLIB=\""${RANLIB}\"" &gt;&gt; ~/.bashrc
44echo export LD=\""${LD}\"" &gt;&gt; ~/.bashrc
45echo export STRIP=\""${STRIP}\"" &gt;&gt; ~/.bashrc</userinput></screen>
46
47</sect1>
Note: See TracBrowser for help on using the repository browser.