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

Marco van de Voort marcov at stack.nl
Sun Feb 16 15:28:59 CET 2014


In our previous episode, Mattias Gaertner said:
> 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
> /usr/(local/)lib/fpc/2.6.2/ppcx86
> /usr/(local/)lib/fpc/2.7.1/ppcx86
> 
> 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.

I played with this in 1.9.2 times iirc. 

IIRC the principle was developed for cases where every version installed
into a prefix with make INSTALL INSTALL_PREFIX=~/somethingversion.  (so that
you also had multiple bin directories and everything was fully separated).

fpc -V also is from that time.



More information about the fpc-devel mailing list