On 08 Jan 2013, at 10:49, Bruce Tulloch wrote:
I had a working Debian Squeeze to Mac OSX Snow Leopard cross-
compilation system working. It's documented here:
http://wiki.freepascal.org/Cross_compiling_OSX_on_Linux
Unfortunately the method described on that page is now broken.
The problem linking for OSX on a Linux no longer works for me.
What had changed when it stopped working?
It produces errors like these:
i386-darwin-ld: MacOSX10.6.sdk/usr/lib/libiconv.dylib load command 5
unknown cmd field
i386-darwin-ld: MacOSX10.6.sdk/usr/lib/libobjc.dylib load command 7
unknown cmd field
i386-darwin-ld: MacOSX10.6.sdk/usr/lib/libc.dylib load command 5
unknown cmd field
i386-darwin-ld:
MacOSX10.6.sdk/System/Library/Frameworks/Carbon.framework/Carbon load
command 4 unknown cmd field
i386-darwin-ld:
MacOSX10.6.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa load
command 4 unknown cmd field
i386-darwin-ld:
MacOSX10.6.sdk/System/Library/Frameworks/OpenGL.framework/OpenGL load
command 5 unknown cmd field
i386-darwin-ld:
MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/
Foundation
load command 6 unknown cmd field
This suggests that you are using a linker that is too old. Are you
certain that the used i386-darwin-ld is the one you built from
cctools-809? (compile with -Cn and look at the generated ppas.sh)
The most obvious thought is that not all objects were built against
the same revision of the SDK but I can confirm they are.
That has no influence anyway. Objects are not really built against an
SDK, only libraries and applications are. The SDK only affects the
linking in case of Pascal (in case of C/C++, it also affects the
compilation because of the used headers).
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal