[fpc-devel] One fpc.cfg per fpc version

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Feb 16 01:53:16 CET 2014


Is there a recommended or usual way to install multiple FPC versions
and one fpc.cfg per version under Linux/Unix?

fpc 2.6.2 and 2.7.1 search fpc.cfg under Linux:

Configfile search: /home/mattias/.fpc.cfg
Configfile search: /usr/lib/fpc/etc/fpc.cfg
Configfile search: /etc/fpc.cfg

The second is actually
<directory of ppcx64>/../etc/fpc.cfg

So, fpc first searches a user config, then a "flavor" config (e.g. one
per version) and the last is the global config.

When installing multiple version of fpc you normally get

Because of the '..' in <>/../etc/fpc.cfg the version vanished in the
search. So by default you can not have one fpc.cfg per fpc version.


More information about the fpc-devel mailing list