[fpc-pascal] installing or using multiple versions of FPC on linux
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Jul 26 14:49:02 CEST 2010
On 26 Jul 2010, at 14:18, Bernd Kreuss wrote:
> What is the easiest way to have a second installation of FPC around that
> I can easily switch to on the same machine without having to change half
> a dozen paths and moving config files around?
Personally, I never actually install my development FPC versions (other than manually copying the compiler binaries under different names, since as I work on the compiler it's handy to have multiple versions for comparison purposes).
I have a .fpc.cfg file in my home directory that looks more or less like this:
---
#ifdef VER2_5_1
-vei
-l
-Fu/Data/dev/fpc/rtl/units/$fpctarget
-Fu/Data/dev/fpc/packages/*/units/$fpctarget
#else
#ifdef VER_2_4_3
-vei
-l
-Fu/Data/dev/fpc-fixes/rtl/units/$fpctarget
-Fu/Data/dev/fpc-fixes/packages/*/units/$fpctarget
#else
#include /etc/fpc
#endif
#endif
---
You occasionally have to modify the version numbers in the #ifdef statements, but other than that it's fairly hassle-free. How to combine this with Lazarus, I don't know.
Jonas
More information about the fpc-pascal
mailing list