86
[
]:
suffix
Creates a new
[
blank line are considered to make up the spec string for the indicated suffix. When the compiler
encounters an input file with the named suffix, it will processes the spec string in order to work
out how to compile that file. For example:
.ZZ:
z-compile -input %i
This says that any input file whose name ends in
, which should be invoked with the command-line switch
z-compile
result of performing the
As an alternative to providing a spec string, the text that follows a suffix directive can be one of
the following:
@
language
This says that the suffix is an alias for a known
command-line switch to GCC to specify a language explicitly. For example:
.ZZ:
@c++
Says that .ZZ files are, in fact, C++ source files.
#
name
This causes an error messages saying:
compiler not installed on this system.
name
GCC already has an extensive list of suffixes built into it. This directive will add an entry to the
end of the list of suffixes, but since the list is searched from the end backwards, it is effectively
possible to override earlier entries using this technique.
GCC has the following spec strings built into it. Spec files can override these strings or create their
own. Note that individual targets can also add their own spec strings to this list.
asm
Options to pass to the assembler
asm_final
Options to pass to the assembler post-processor
cpp
Options to pass to the C preprocessor
cc1
Options to pass to the C compiler
cc1plus
Options to pass to the C++ compiler
endfile
Object files to include at the end of the link
link
Options to pass to the linker
lib
Libraries to include on the command line to the linker
libgcc
Decides which GCC support library to pass to the linker
linker
Sets the name of the linker
predefines
Defines to be passed to the C preprocessor
signed_char
Defines to pass to CPP to say whether
by default
startfile
Object files to include at the start of the link
Here is a small example of a spec file:
%rename lib
*lib:
--start-group -lgcc -lc -leval1 --end-group %(old_lib)
pair. All lines after this directive and up to the next directive or
] spec
suffix
substitution. (See below.)
%i
old_lib
Chapter 4. GCC Command Options
should be passed to the program
.ZZ
-input
. This is similar to using the
language
is signed
char
and with the
-x
Need help?
Do you have a question about the ENTERPRISE LINUX 4 and is the answer not in the manual?