Changeset 6bb43b3 for BOOK/cross-tools/mips64
- 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/mips64/flags.xml
re47ec16 r6bb43b3 11 11 <title>Build Flags</title> 12 12 13 <para>We will need to setup target specific flags for the compiler 14 and linkers.</para> 13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 14 href="../x86_64/flags.xml" 15 xpointer="xpointer(//*[@os='a'])"/> 15 16 16 <screen ><userinput>export BUILD32="-mabi=32"17 <screen os="b"><userinput>export BUILD32="-mabi=32" 17 18 export BUILDN32="-mabi=n32" 18 19 export BUILD64="-mabi=64"</userinput></screen> 19 20 20 <para>You will need to set your host target triplet for o32 bit:</para> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../x86_64/flags.xml" 23 xpointer="xpointer(//*[@os='c'])"/> 21 24 22 <screen ><userinput>export LFS_TARGET32="`echo ${LFS_TARGET}| sed -e 's/64//g'`"</userinput></screen>25 <screen os="d"><userinput>export LFS_TARGET32="`echo ${LFS_TARGET}| sed -e 's/64//g'`"</userinput></screen> 23 26 24 <screen><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \ 25 echo "Host and Target can't be the same." ; fi</userinput></screen> 27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 28 href="../x86_64/flags.xml" 29 xpointer="xpointer(//*[@os='e'])"/> 26 30 27 <para>If the above test gave you "Host and Target can't be the same", you will need to change your LFS_HOST to a 28 a different target triplet:</para> 31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 32 href="../x86_64/flags.xml" 33 xpointer="xpointer(//*[@os='f'])"/> 29 34 30 <screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../x86_64/flags.xml" 37 xpointer="xpointer(//*[@os='g'])"/> 31 38 32 <para>Lets add the build flags to <filename>~/.bashrc</filename> to 33 prevent issues if we stop and come back later.</para> 39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 40 href="../x86_64/flags.xml" 41 xpointer="xpointer(//*[@os='h'])"/> 34 42 35 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc 43 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 44 href="../x86_64/flags.xml" 45 xpointer="xpointer(//*[@os='i'])"/> 46 47 <screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc 36 48 echo export BUILDN32=\""${BUILDN32}\"" >> ~/.bashrc 37 49 echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
Note:
See TracChangeset
for help on using the changeset viewer.