[fpc-pascal] getting cross with the cross compiler
Karoly Balogh (Charlie/SGR)
charlie at scenergy.dfmk.hu
Sat Oct 7 11:06:12 CEST 2017
Hi,
On Fri, 6 Oct 2017, pascalX at piments.com wrote:
> This builds fine using the stock fpc 3.0.2 with linux target. However,
> the supposed cross-compiler seems to be trying to build for linux.
The cross compiler binary itself is only CPU specific, not OS specific.
And because for the cross CPU target the same OS exist which is the host
platform,it tries to use that, which is Linux in your case.
You need to specify the target platform with -Twin, at least. Depending on
if you have the right config in fpc.cfg, you might also need to point the
compiler to the right unit directories using some -Fu parameters.
Charlie
More information about the fpc-pascal
mailing list