[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.6.1 Building a Normal Program

When configuring a Canadian Cross in the Cygnus tree, all the appropriate environment variables are automatically set to `host-tool', where host is the value used for the `--host' option, and tool is the name of the tool (e.g., `gcc', `as', etc.). These tools must be on your `PATH'.

Adding a prefix of host will give the usual name for the build cross host tools. To see this, consider that when these cross tools were built, they were configured to run on the build system and to produce code for the host system. That is, they were configured with a `--target' option that is the same as the system which we are now calling the host. Recall that the default name for installed cross tools uses the target system as a prefix (see section 5.5 Using the Target Type). Since that is the system which we are now calling the host, host is the right prefix to use.

For example, if you configure with `--build=i386-linux-gnu' and `--host=solaris', then the Cygnus tree will automatically default to using the compiler `solaris-gcc'. You must have previously built and installed this compiler, probably by doing a build with no `--host' option and with a `--target' option of `solaris'.



This document was generated by system on December, 2 2004 using texi2html