[fpc-devel] One fpc.cfg per fpc version
patspiper
patspiper at gmail.com
Sun Feb 16 15:52:29 CET 2014
On 16/02/14 16:28, Marco van de Voort wrote:
> 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).
That's the method I use. My installs are as follows:
bin folder: <basefpcfolder>/$(FPCVER)/bin
ppc folder: <basefpcfolder>/$(FPCVER)/lib/fpc/$(FPCVER)
Stephano
>
> fpc -V also is from that time.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list