clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 53ed05b was 6bb43b3, checked in by Jim Gifford <clfs@…>, 19 years ago |
r788@server (orig r786): jim | 2005-12-01 12:07:35 -0800
r851@server: jim | 2005-12-01 12:07:08 -0800
Text updates from G. Moko. Thank You
|
-
Property mode
set to
100644
|
File size:
1.7 KB
|
Rev | Line | |
---|
[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-cross-tools-flags">
|
---|
| 9 | <?dbhtml filename="flags.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Build Flags</title>
|
---|
| 12 |
|
---|
[6bb43b3] | 13 | <para os="a">We will need to setup target specific flags for the compiler
|
---|
[3f8be484] | 14 | and linkers.</para>
|
---|
| 15 |
|
---|
[6bb43b3] | 16 | <screen os="b"><userinput>export BUILD32="-m32"
|
---|
[3f8be484] | 17 | export BUILD64="-m64"</userinput></screen>
|
---|
| 18 |
|
---|
[6bb43b3] | 19 | <para os="c">You will need to set your host target triplet for 32 bits:</para>
|
---|
[3f8be484] | 20 |
|
---|
[6bb43b3] | 21 | <screen os="d"><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen>
|
---|
[3f8be484] | 22 |
|
---|
[6bb43b3] | 23 | <para os="e">Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
|
---|
[3f8be484] | 24 | target, we will get some failures during our cross-compile:</para>
|
---|
| 25 |
|
---|
[6bb43b3] | 26 | <screen os="f"><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \
|
---|
[3f8be484] | 27 | echo "Host and Target can't be the same." ; fi</userinput></screen>
|
---|
| 28 |
|
---|
[6bb43b3] | 29 | <para os="g">If the above test gave you "Host and Target can't be the same", you will need to change your LFS_HOST to a
|
---|
[3f8be484] | 30 | a different target triplet:</para>
|
---|
| 31 |
|
---|
[6bb43b3] | 32 | <screen os="h"><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
|
---|
[3f8be484] | 33 |
|
---|
[6bb43b3] | 34 | <para os="i">Lets add the build flags to <filename>~/.bashrc</filename> to
|
---|
[3f8be484] | 35 | prevent issues if we stop and come back later.</para>
|
---|
| 36 |
|
---|
[6bb43b3] | 37 | <screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc
|
---|
[3f8be484] | 38 | echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
|
---|
| 39 | echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bashrc
|
---|
| 40 | echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc</userinput></screen>
|
---|
| 41 |
|
---|
| 42 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.