Not all options must be given on the compiler command line. The compiler can use a configuration
file which can contain the same options as on the command line. There can be only one
command-line option on each line in the configuration file.
Unless you specify the -n (see page 96) option, the compiler will look for a configuration file fpc.cfg
in the following places:
- Under unix (such as linux)
- The current directory.
- Your home directory, it looks for .fpc.cfg.
- The directory specified in the environment variable PPC_CONFIG_PATH, and if it is
not set, it will look in the etc directory above the compiler directory. (For instance,
if the compiler is in /usr/local/bin, it will look in /usr/local/etc)
- The directory /etc.
- Under all other OSes:
- The current directory.
- If it is set, the directory specified in the environment variable PPC_CONFIG_PATH.
- The directory where the compiler is.
Remark: Note that the compiler directory is determined by the location of the actual compiler binary. This
has 2 consequences:
- The default installation on unix places this under /usr/local/lib/fpc, or /usr/lib/fpc. It
places several symlinks in /usr/local/bin or /usr/bin. These symlinks are not considered
when looking for the configuration file(s), so the places to look for the configuration
file are /usr/local/lib/fpc/etc, or /usr/lib/fpc/etc.
- The fpc command is not the actual compiler binary. The fpc command selects the
actual compiler binary based on e.g. the CPU target. The actual compiler binary is
called ppcXYZ.