[fpc-pascal] hot pass $LCL_PLATFORM to fpc.cfg from command line

Michael Van Canneyt michael at freepascal.org
Thu Apr 20 11:09:40 CEST 2006



On Thu, 20 Apr 2006, darekM wrote:

> Hi
> I want to pass directive from command line to fpc.cfg
>
> in fpc.cfg I have something like this
>
> -Fu/home/me/project1/units/$LCL_PLATFORM
>
>
> and I want to compile my program form command line
>
>
> fpc -dRELEASE myprogram
>
>
> how setup $LCL_PLATFORM

in bash:

LCL_PLATFORM=gtk1
export LCL_PLATFORM

in CSH:
setenv LCL_PLATFORM gtk1

You should put this command in .profile (bash) or .login (csh) if you
want to avoid typing it each time when you create a shell window.

Michael.



More information about the fpc-pascal mailing list