[fpc-pascal] x86-linux-gnu cross

Marco van de Voort fpc at pascalprogramming.org
Tue Sep 1 21:33:12 CEST 2020


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.




More information about the fpc-pascal mailing list