Ignore:
Timestamp:
Feb 21, 2006, 1:43:21 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Children:
496be96
Parents:
fe884f4
Message:

r899@server (orig r897): jim | 2005-12-14 21:23:24 -0800

r1069@server: jim | 2005-12-14 21:21:50 -0800
Changing how we set LFS_HOST, LFS_TARGET, and LFS_TARGET32


File:
1 edited

Legend:

Unmodified
Added
Removed
  • cross-tools/x86_64/flags.xml

    rfe884f4 r05806e8  
    1717export BUILD64="-m64"</userinput></screen>
    1818
    19   <para os="c">You will need to set your host target triplet for 32 bits:</para>
    20 
    21 <screen os="d"><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen>
    22 
    23   <para os="e">Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
    24   target, we will get some failures during our cross-compile:</para>
    25 
    26 <screen os="f"><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \
    27   echo "Host and Target can't be the same." ; fi</userinput></screen>
    28 
    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
    30   a different target triplet:</para>
    31 
    32 <screen os="h"><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
    33 
    34   <para os="i">Lets add the build flags to <filename>~/.bashrc</filename> to
     19  <para os="c">Lets add the build flags to <filename>~/.bashrc</filename> to
    3520  prevent issues if we stop and come back later.</para>
    3621
    37 <screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
    38 echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
    39 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bashrc
    40 echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     22<screen os="d"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
     23echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    4124
    4225</sect1>
Note: See TracChangeset for help on using the changeset viewer.