I do not know if this is the right place on how to setup the enviornment variables for a cross compiling toolchain. The toolchain’s purpose is to develop OSes. I am using Ubuntu 12.04 LTS. The problem is how do I setup the enviorment variables for the toolchain. The path of the cross compiler toolchain is
/home/Home/local
I want to be able to use GCC cross compiler toolchain but still be able to use the GCC toolchain that came with Ubuntu. If I am not clear please feel free to ask me some questions, or if you need more information about what I am want to achieve.
If you state a
--target=...in your configure (which you are bound to do if you’re setting up a cross-compiler), all resulting binaries will be prefixed with that target string; i.e., for--target=i586-elf, you will end up withi586-elf-gcc,i586-elf-asetc.. Those will not collide with your system compiler, so you can add/home/Home/local/binto your PATH without problems.gccwill still be your system compiler,i586-elf-gccyour cross-compiler.Ref. OSDev.org.