25.2. Specifying the Target

By default, the 'configure' script assumes that the target is the same as the host. This is the more common case; when the target is the same as the host, for example, 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 Chapter 2). The argument to '--target' is the configuration name of the system for which you want to generate code (see Section 2.4, "Configuration Names" ). To build tools that generate code for a MIPS ELF–embedded system, for example, you use '--target mips-elf'.

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.