Changeset 12e6567 in clfs-sysroot for BOOK/final-system/common/variables.xml
- Timestamp:
- Apr 12, 2009, 2:13:25 PM (16 years ago)
- Branches:
- master
- Children:
- 1440bf8
- Parents:
- 4facf43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/variables.xml
r4facf43 r12e6567 11 11 <title>Build Variables</title> 12 12 13 <para>Setup target-specific variables for the compiler 14 and linkers:</para> 15 16 <screen><userinput>export CC="${CLFS_TARGET}-gcc" 17 export CXX="${CLFS_TARGET}-g++" 18 export AR="${CLFS_TARGET}-ar" 19 export AS="${CLFS_TARGET}-as" 20 export RANLIB="${CLFS_TARGET}-ranlib" 21 export LD="${CLFS_TARGET}-ld" 22 export STRIP="${CLFS_TARGET}-strip"</userinput></screen> 23 24 <para>Then add the build variables to <filename>~/.bashrc</filename> to 25 prevent issues if you stop and come back later:</para> 26 27 <screen><userinput>cat > config.cache << EOF 28 export CC="${CC}" 29 export CXX="${CXX}" 30 export AR="${AR}" 31 export AS="${AS}" 32 export RANLIB="${RANLIB}" 33 export LD="${LD}" 34 export STRIP="${STRIP}" 35 EOF</userinput></screen> 13 <para>Throughout this book, you will see a reference to different environment variables to be set and unset for different builds. The commands to set and unset the variables should be present on every page where compilation occurs. It may be unnecessary to run these commands each time as long as you're aware of what is set in your current enviornment.</para> 36 14 37 15 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.