[fpc-pascal] make fpc

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Nov 22 10:48:51 CET 2010


On 21 Nov 2010, at 19:03, Brian Winfrey wrote:

> What version should fpc display (Revision: 16393).
>
> When I get latest and make /usr/bin/fpc is at version 2.4.2.
>
> fpc -vut dummy.pas
> ...
> Compiler: /usr/lib/fpc/2.4.2/ppc386
> Using executable path: /usr/lib/fpc/2.4.2/
> Using unit path: /usr/lib/fpc/2.4.2/units/i386-linux/rtl/
> ...
>
> The output indicates that 2.4.3 directories are created and 2.4.3
> compiler is used.
>
> I run
>  make clean build && make install INSTALL_PREFIX="/usr"

There are two separate things: the installed FPC versions, and the  
default FPC version. The default FPC version is determined by the  
symbolic links /usr/bin/ppc386, /usr/bin/ppcx64 etc (or /usr/local/bin/ 
ppc386 etc on non-Linux). A "make install" will add a new FPC version,  
but it does not make it the default. If you want to do that, change  
the symlinks to point to the new compiler version. The "fpc" utility  
is only a wrapper that calls through to ppc386/ppcx64/... and has no  
version itself.


Jonas



More information about the fpc-pascal mailing list