Hi,
Under Lazarus I can specify the unit output directory as follows: ../../lib/$(TargetCPU)-$(TargetOS)
I'm trying to do the same thing from the command line (without Lazarus), but FPC doesn't know about the TargetCPU or TargetOS macros. Is there something else or similar I can use in my custom extrafpc.cfg file to get the same result?
-------------[ extrafpc.cfg ]----------------
......
# Unit output path
-FU../lib/$(TargetCPU)-$(TargetOS)
......
----------------------- END -----------------
if I run the following from the command line:
fpc @extrafpc.cfg gui/fpgui_package.pas -dRELEASE -dX11
I get the following errors:
Compiling ./corelib/x11/x11_xft.pas
x11_xft.pas(161,1) Error: Can't create object file: ../lib/$(TargetCPU)-$(TargetOS)/x11_xft.o
x11_xft.pas(161,1) Fatal: Can't create object
../lib/$(TargetCPU)-$(TargetOS)/x11_xft.o
Fatal: Compilation aborted
Error: /opt/fpc_2.1.5/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
Regards,
- Graeme -
