fpc-3.0.4.cfg5
Free pascal compiler (fpc) configuration file, name derived from free pascal compiler.
Usage
The compiler
looks
for
the
fpc.cfg
file
in
the
following
places
:
variable PPC_CONFIG_PATH,
and
if
it's
not
set under
compilerdir/../etc.
-
If
it
is
not
yet
found:
in
/etc.
They work
the
same
way
as
their
$ ...
directive
counterparts
in
Pascal:
Overview
This is the main configuration file of the Free Pascal Compiler (FPC)
All commandline options of the compiler (described in fpc(1) ) can be specified in fpc.cfg
When the configuration file is found, it is read, and the lines it contains are treated like you typed them on the command line see fpc(1) with some extra condtional possibilities.
Examples
A standard block often used in (the Linux version of) fpc.cfg is
-vwhin
#IFDEF VER0_99_12
#IFDEF FPC_LINK_STATIC
-Fu/usr/lib/fpc/0.99.12/rtl/static
-Fu/usr/lib/fpc/0.99.12/units/static
#ENDIF
#IFDEF FPC_LINK_DYNAMIC
-Fu/usr/lib/fpc/0.99.12/rtl/shared
-Fu/usr/lib/fpc/0.99.12/units/shared
#ENDIF
-Fu/usr/lib/fpc/0.99.12/rtl
-Fu/usr/lib/fpc/0.99.12/units
#ENDIF
The block is copied into the fpc.cfg file for each version you use (normally the latest release and the lastest developpers snapshot.