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

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Feb 17 12:15:37 CET 2014


On Mon, 17 Feb 2014 10:50:02 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:

>[...]
> You can perfectly cater for different FPC versions in 1 config file.
> It has support for ifdef, include and whatnot.
> You can probably even have (I would need to check this)
> 
> #include /etc/fpc.d/$FPCVERSION$.cfg

Nice. Can this be added by default?

BTW, documentation is somewhat off:

Users manual 2.2: 
"The compiler will first look for a file .fpc.cfg in your home
directory before looking in the /etc directory."

It does not mention the <dir>/../etc/fpc.cfg, nor PPC_CONFIG_PATH.
Perhaps it should refer to chapter 3.1.5?

Users manual 3.1.5:
It does not mention the <dir>/../etc/fpc.cfg.
It should explain, that dir is the directory of the ppcxxx executable
(/usr/lib/fpc/2.6.2), not the dir of the symlink in PATH
(e.g. /usr/bin).

 
> and any possible variation of this scheme. It's the problem of the packager to organize this.

The packager is often only responsible for the release version. The
other versions are then installed by the user.

 
> What more do you need ?

I'm investigating what Lazarus needs to support to switch fpc versions
more easily. That's why I'm collecting all the possibilities how people
install multiple versions of fpc. I'm puzzled of the amount of different
approaches - I thought two were enough. I wonder if some of them exists
only because the user did not know the alternatives.

Is there already a doc about how to install multiple versions of fpc?

Mattias



More information about the fpc-devel mailing list