[prev] [prev-tail] [tail] [up]

### 5.3 Variable substitution in paths

To avoid having to edit your configuration files too often, the compiler allows you to specify the following variables in the paths that you feed to the compiler:

FPCVER
  is replaced by the compiler’s full version string.
FPCDATE
  is replaced by the compiler’s date.
FPCTARGET
  is replaced by the compiler’s target CPU (deprecated).
FPCCPU
  is also replaced by the compiler’s target CPU.
TARGET
  is replaced by the compiler’s target OS (deprecated).
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/$FPCVER/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 configuration file.

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 effects.

[prev] [prev-tail] [front] [up]