[Lazarus] Dual installation of FPC

Thierry B. thierrybothorel at yahoo.fr
Sat Oct 23 10:05:41 CEST 2010


Le 22/10/2010 21:27, patspiper a écrit :
> On 10/22/2010 09:39 PM, Thierry B. wrote:
>> The best is to put all you fpcs under a root directory. Then in you
>> ~/.fpc.cfg, just use $FPCVERSION so that it matches all versions. For
>> example :
>>
>>    # searchpath for units and other system dependent things
>>
>> -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET
>>
>>
>> -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET/*
>>
>>
>> -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET/rtl
>>
>>
>>
>> Thierry B.
>>    
> That would require using FPC/Lazarus with root privileges...not recommended

Uhm, I should have not used "a root directory" but "a base directory in
you home folder" instead. No need to run Lazarus as root.

> 
> I solved the fpc.cfg issue anyway by having the 2.4.0 config file in
> /etc, and 2.5.1's config file in ~/.fpc.cfg
> 
> However, another idea just came to my mind: Can #IFDEF within fpc.cfg be
> used to test the value of $FPCVERSION? This would allow conditional paths.
> 
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> 






More information about the Lazarus mailing list