5.3 Variable substitution in paths

To avoid having to edit your conguration les too often, the compiler allows you to specify the following variables in the paths that you feed to the compiler:
FPCFULLVERSION
is replaced by the compiler's version string.
FPCVERSION
is replaced by the compiler's version string.
FPCDATE
is replaced by the compiler's date.
FPCTARGET
is replaced by the compiler's target (combination of CPU-OS)
FPCCPU
is also replaced by the compiler's target CPU.
FPCOS
is replaced by the compiler's target OS.

To have these variables subsituted, just insert them with a $ prepended, as follows:

-Fu/usr/lib/fpc/$FPCVERSION/rtl/$FPCOS

This is equivalent to

-Fu/usr/lib/fpc/0.99.12a/rtl/linux

If the compiler version is 0.99.12a and the target os is linux.

These replacemens are valid on the command-line and also in the conguration le.

On the linux command-line, you must be careful to escape the $ since otherwise the shell will expand the variable for you, which may have undesired eects.