Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-04

hot pass $LCL_PLATFORM to fpc.cfg from command line

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

darekM

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

Darek

Michael Van Canneyt
to darekM
darekM wrote 15 lines
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.