This section was taken from the general Cross compiling page and may still be of interest: XR/opt/Mac/Leopard10.5.sdk), or the Darwin linker will try to link to the wrong startup object (/usr/lib/crt1.o).įpc Mailing list 6 August 2011 post by Bruce titled "Re: Cross Compiling from Linux to Leopard 10.5 or Snow Leopard 10.6 target. Be sure to specify the -XR option pointing to your SDK root (e.g.Reported in (the unfixable) FPC bug #12001. Be sure to specify the -gw in your projects to avoid problems. There are two more gotcha's when cross-compiling to macOS: You should now be able to use Lazarus in Linux to build for macOS. Perform a Clean+Build of the LCL and the Package Registration. Fu/opt/cross/lib/fpc/$fpcversion/units/i386-darwin/rtlīe sure to specify the Darwin OS target, i386 CPU target and, most importantly, add the -gw option. Fu/opt/cross/lib/fpc/$fpcversion/units/i386-darwin/* Fu/opt/cross/lib/fpc/$fpcversion/units/i386-darwin/ Note that the options (OPT) as shown are vital, especially -gw.Īdd a darwin (cross-compile) clause to /etc/fpc.cfg: Make distclean & FPC =ppc386 make crossall crossinstall \ CPU_TARGET =i386 OS_TARGET =darwin \ CROSSBINDIR =/opt/odcctools/bin BINUTILSPREFIX =i386-darwin- \ INSTALL_PREFIX =/opt/cross \ OPT = "-gl -gw -godwarfsets -XX -CX -Xd -Fl/opt/MacOSX10.5.sdk/usr/lib" #if you use hg/mercurial you can see release version:ħ30fd5ffbeb1 16666 fixes_2_4 release_2_4_2
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |