To avoid having to edit your con guration les too often, the compiler allows you to specify the following variables in the paths that you feed to the compiler:
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/2.2.2/rtl/linux
|
if the compiler version is 2.2.2 and the target OS is linux.
These replacements are valid on the command line and also in the con guration le.
On the linux command line, you must be careful to escape the $ since otherwise the shell will attempt to expand the variable for you, which may have undesired e ects.