Op 2020-09-01 om 20:28 schreef Adriaan van Os via fpc-pascal:
On Mac OS X 10.8, I have built an fpc-3.0.4  runtime-library for CPU_TARGET=x86_64 OS_TARGET=linux BINUTILSPREFIX=x86_64-linux-gnu- after building gnu binutils-2.34 for  --target=x86_64-linux-gnu --host=i686-apple-darwin --build=i686-apple-darwin --prefix=/usr/local.

It's been a while since I did crosscompiling regularly, but usually the key is comparing a ppas.sh/link.res  natively and cross.  FPC tries to be smart in the t_ detecting things that might not be there "cross".   Add a -k to make LD verbose and then run both, comparing output afterwards.

Also the linker might have some defaults natively that it doesn't have cross.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to