[fpc-pascal] Rebuilding RTL

Sven Barth pascaldragon at googlemail.com
Wed Aug 8 00:17:10 CEST 2018


Ryan Joseph <ryan at thealchemistguild.com> schrieb am Mi., 8. Aug. 2018,
00:02:

> If I cd to the rtl directory in the fpc sources and run make they are
> compiled into the /rtl/units/x86_64-darwin directory.
>
> 1) How do I compile the ppc386 units? the readme says there’s a FPC
> variable for on the makefile configs but I can’t find it.
>

Pass CPU_TARGET=i386 to the call to make. Though you need to use a ppc386
that. Best do a "make cycle CPU_TARGET=i386" inside the "compiler"
directory. This will build both the RTL and the compiler.


> 2) After I make the units what switch can I use for fpc so it uses those
> units instead of the default location? I tried -Fo and -Fu but it still
> used the default rtl location.
>

Are you sure that you used the correct compiler? Try to pass -n to tell it
to ignore the fpc.cfg and see whether it picks up the correct ones when you
pass them with - Fu (-Fo is not required). You can also use -vut to see
which locations the compiler tries to find units in and which it uses in
the end.

Regards,
Sven

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180808/b0c95e5d/attachment.html>


More information about the fpc-pascal mailing list