[Lazarus] Dual installation of FPC

Thierry B. thierrybothorel at yahoo.fr
Fri Oct 22 20:39:20 CEST 2010


Le 22/10/2010 13:48, patspiper a écrit :

> 
> The question remains how to handle the paths and fpc.cfg so that Lazarus
> can use both FPC versions on demand (by changing the compiler path and
> FPC source directory entries).
> 

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.





More information about the Lazarus mailing list