On Mon, 21 Jun 2010, Marcos Douglas wrote:

I need use the sources of FPC/Lazarus in external HD. So, the FPC path
is changed in differents computers.
Is possible to use a macro to point to FPC path (in variable of
system) at fpc.cfg file?

eg:

Instead this:

-FuC:\freepascal\fpc/$FPCVERSION/units/$FPCTARGET/
-FuC:\freepascal\fpc/$FPCVERSION/units/$FPCTARGET/*
-FuC:\freepascal\fpc/$FPCVERSION/units/$FPCTARGET/rtl

use this:

-Fu$FPCSOURCE/$FPCVERSION/units/$FPCTARGET/
-Fu$FPCSOURCE/$FPCVERSION/units/$FPCTARGET/*
-Fu$FPCSOURCE/$FPCVERSION/units/$FPCTARGET/rtl

I already use the PPC_CONFIG_PATH variable to fpc.cfg file. Would be a
variable to FPC path...

If the compiler does not recognize a variable, it will search for it in
the environment. So all you must do is set the variable in the environment.

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to