Changeset 6bb43b3 for BOOK/cross-tools/x86_64
- Timestamp:
- Feb 21, 2006, 1:26:16 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- cedcdaa
- Parents:
- e47ec16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/x86_64/flags.xml
re47ec16 r6bb43b3 11 11 <title>Build Flags</title> 12 12 13 <para >We will need to setup target specific flags for the compiler13 <para os="a">We will need to setup target specific flags for the compiler 14 14 and linkers.</para> 15 15 16 <screen ><userinput>export BUILD32="-m32"16 <screen os="b"><userinput>export BUILD32="-m32" 17 17 export BUILD64="-m64"</userinput></screen> 18 18 19 <para >You will need to set your host target triplet for 32 bit:</para>19 <para os="c">You will need to set your host target triplet for 32 bits:</para> 20 20 21 <screen ><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen>21 <screen os="d"><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen> 22 22 23 <para >Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our23 <para os="e">Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our 24 24 target, we will get some failures during our cross-compile:</para> 25 25 26 <screen ><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \26 <screen os="f"><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \ 27 27 echo "Host and Target can't be the same." ; fi</userinput></screen> 28 28 29 <para >If the above test gave you "Host and Target can't be the same", you will need to change your LFS_HOST to a29 <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 30 30 a different target triplet:</para> 31 31 32 <para>If the above test gave you an error, you will need to change your LFS_HOST to a 33 a different target triplet:</para> 32 <screen os="h"><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen> 34 33 35 <screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen> 36 37 <para>Lets add the build flags to <filename>~/.bashrc</filename> to 34 <para os="i">Lets add the build flags to <filename>~/.bashrc</filename> to 38 35 prevent issues if we stop and come back later.</para> 39 36 40 <screen ><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc37 <screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc 41 38 echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc 42 39 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bashrc
Note:
See TracChangeset
for help on using the changeset viewer.