[Lazarus] One project and many versions of FPC?

Marco van de Voort marcov at stack.nl
Thu Sep 17 18:41:20 CEST 2009


On Thu, Sep 17, 2009 at 04:26:59PM +0200, Graeme Geldenhuys wrote:
> Marco van de Voort het geskryf:
> > 
> > Or by fpc -V and -P
> 
> I fail to see how this helps? Also my FPC doesn't have a -V command line
> option, only -v<x> for verbose output.

The -V and -P options are nearly as old as the buildfaq. Any non ancient
version should have them. They should be documented afaik, and are covered
in the buildfaq.
 
> And -T<x> is for the target operating system. eg: -Tlinux

That is a ppc386 parameter. I'm talking about fpc parameters.

-V is version  (fpc -Vbla executes ppc<defaultarch>-bla)
-P is arch     (fpc -Pppc executes ppcppc)
 
> How does this help if I have Linux, but FPC 2.2.5, 2.3.1 and 2.5.1
> installed on Linux?

Simple. Make symlinks ppc386-2.2.5 ppc386-2.3.1 ppc386-2.5.1 and similarly
 ppcx64-2.2.5 etc to the respective compilers in $prefix/lib/fpc/...

Set up the -Fu in fpc.cfg properly by using $FPCVERSION and  $FPCTARGET etc

and you can compile with

fpc -V2.2.5 -Px86_64  etc.

This is all original content (of the first version) of the buildfaq btw.




More information about the Lazarus mailing list