Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)

When you have multiple hosts or targets configured in separate directories, you can run make on
them in parallel (for example, if they are NFS-mounted on each of the hosts); they will not interfere
with each other.
Specifying names for hosts and targets
The specifications used for hosts and targets in the configure script are based on a three-part
naming scheme, but some short predefined aliases are also supported. The full naming scheme
encodes three pieces of information in the following pattern:
architecture-vendor-os
For example, you can use the alias sun4 as a host argument, or as the value for target in a
--target=target option. The equivalent full name is sparc-sun-sunos4.
The configure script accompanying GDB does not provide any query facility to list all supported
host and target names or aliases. configure calls the Bourne shell script config.sub to map
abbreviations to full names; you can read the script, if you wish, or you can use it to test your
guesses on abbreviations|for example:
% sh config.sub i386-linux
i386-pc-linux-gnu
% sh config.sub alpha-linux
alpha-unknown-linux-gnu
% sh config.sub hp9k700
hppa1.1-hp-hpux
% sh config.sub sun4
sparc-sun-sunos4.1.1
% sh config.sub sun3
m68k-sun-sunos4.1.1
% sh config.sub i986v
Invalid configuration `i986v': machine `i986v' not recognized
config.sub is also distributed in the GDB source directory (gdb-gdb-199991101, for version
gdb-199991101).
configure options
Here is a summary of the configure options and arguments that are most often useful for building
GDB. configure also has several other options not listed here. See Info file configure.info,
or the node What Configure Does, for a full explanation of configure.
configure [--help]
[--prefix=dir]
[--exec-prefix=dir]
[--srcdir=dirname]
[--norecursion] [--rm]
[--target=target]
host
You may introduce options with a single - rather than -- if you prefer; but you may abbreviate
option names if you use --.
--help Display a quick summary of how to invoke configure.
--prefix=dir Configure the source to install programs and files under directory `dir.
--exec-prefix=dir Configure the source to install programs under directory dir.
--srcdir=dirname Warning: using this option requires gnu make, or another make that
implements the VPATH feature. Use this option to make configurations
in directories separate from the GDB source directories. Among other
things, you can use this to build (or maintain) several configurations
simultaneously, in separate directories. configure writes configuration
specific files in the current directory, but arranges for them to use the
source in the directory dirname. configure creates directories under
the working directory in parallel to the source directories below
dirname.
282 Installing GDB