Setup target-specific variables for the compiler, linker, and other
compile-time tools. For the compiler and linker, use the target file
system directory as a sysroot rather than the sysroot we setup before
for the cross-tools. This time we write them to ~/.bashrc
so that they persist even if the clfs
user logs out:
echoexport CC=\""${CLFS_TARGET}-gcc --sysroot=${CLFS}/targetfs\""
>> ~/.bashrc echoexport CXX=\""${CLFS_TARGET}-g++ --sysroot=${CLFS}/targetfs\""
>> ~/.bashrc echoexport AR=\""${CLFS_TARGET}-ar\""
>> ~/.bashrc echoexport AS=\""${CLFS_TARGET}-as\""
>> ~/.bashrc echoexport LD=\""${CLFS_TARGET}-ld --sysroot=${CLFS}/targetfs\""
>> ~/.bashrc echoexport RANLIB=\""${CLFS_TARGET}-ranlib\""
>> ~/.bashrc echoexport READELF=\""${CLFS_TARGET}-readelf\""
>> ~/.bashrc echoexport STRIP=\""${CLFS_TARGET}-strip\""
>> ~/.bashrc source ~/.bashrc