| Autoconf, Automake, and Libtool | ||
|---|---|---|
| <<< Previous | Cross Compilation with GNU Autotools | Next >>> |
By default, the configure script will assume that the target is the same as the host. This is the more common case; for example, when the target is the same as the host, you get a native compiler rather than a cross compiler.
If you want to build a cross compilation tool, you must specify the target explicitly by using the --target option when you run configure See the chapter called How to run configure and make. The argument to --target is the configuration name of the system for which you wish to generate code. See the section called Configuration Names in the chapter called How to run configure and make. For example, to build tools which generate code for a MIPS ELF embedded system, you would use --target mips-elf.
| <<< Previous | Home | Next >>> |
| Cross Compilation with GNU Autotools | Up | Using the Target Type |