Hi,

On Fri, 6 Oct 2017, pasc...@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to