[fpc-pascal] Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Aug 4 15:45:26 CEST 2011


On 04 Aug 2011, at 15:13, Bruce Tulloch wrote:

> So I've got cross-compilation working but I have one last problem.
>
> I can't seem to get fpc to drive the linker to search the SDK path
> BEFORE the default paths. Specifically, i386-darwin-ld finds
>
>  /usr/lib/crt1.o
>
> and NOT
>
>  /opt/MacOSX10.5.sdk/usr/lib/crt1.o
>
> despite fpc being passed the option
>
>  -k-L/opt/MacOSX10.5.sdk/usr/lib

Use -XR/opt/MacOSX10.5.sdk/ and get rid of the -k parameter.


Jonas



More information about the fpc-pascal mailing list