Changeset 1dfe239 in clfs-embedded for BOOK/cross-tools
- Timestamp:
- Apr 14, 2017, 3:07:36 AM (8 years ago)
- Branches:
- master
- Children:
- 4d9350d
- Parents:
- a3957dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/toolchain.xml
ra3957dd r1dfe239 11 11 <title>ToolChain Variables</title> 12 12 13 <para>Setup target-specific variables for the compiler 14 and linkers. This time we keep them:</para> 13 <para>Setup target-specific variables for the compiler, linker, and other 14 compile-time tools. For the compiler and linker, use the target file system 15 directory as a sysroot rather than the sysroot we setup before for the 16 cross-tools. This time we write them to <filename>~/.bashrc</filename> so 17 that they persist even if the clfs user logs out:</para> 15 18 16 <screen><userinput>echo <literal>export CC=\""${CLFS_TARGET}-gcc \""</literal> >> ~/.bashrc17 echo <literal>export CXX=\""${CLFS_TARGET}-g++ \""</literal> >> ~/.bashrc19 <screen><userinput>echo <literal>export CC=\""${CLFS_TARGET}-gcc --sysroot=${CLFS}/targetfs\""</literal> >> ~/.bashrc 20 echo <literal>export CXX=\""${CLFS_TARGET}-g++ --sysroot=${CLFS}/targetfs\""</literal> >> ~/.bashrc 18 21 echo <literal>export AR=\""${CLFS_TARGET}-ar\""</literal> >> ~/.bashrc 19 22 echo <literal>export AS=\""${CLFS_TARGET}-as\""</literal> >> ~/.bashrc 20 echo <literal>export LD=\""${CLFS_TARGET}-ld \""</literal> >> ~/.bashrc23 echo <literal>export LD=\""${CLFS_TARGET}-ld --sysroot=${CLFS}/targetfs\""</literal> >> ~/.bashrc 21 24 echo <literal>export RANLIB=\""${CLFS_TARGET}-ranlib\""</literal> >> ~/.bashrc 22 25 echo <literal>export READELF=\""${CLFS_TARGET}-readelf\""</literal> >> ~/.bashrc
Note:
See TracChangeset
for help on using the changeset viewer.