Recent

Author Topic: Cross compiling from Windows/Linux to OSX  (Read 3644 times)

Daniello

  • Jr. Member
  • **
  • Posts: 64
Cross compiling from Windows/Linux to OSX
« on: December 14, 2014, 11:39:50 pm »
I was reading about cross compiling with FPC, this link:
wiki.lazarus.freepascal.org/Cross_compiling

While I have a Mac Mini and Macbook,  I would like to have a cross compiler ready when I just want to make builds for all the main OS, just by executing a single script.

Why is there nothing in the wiki about crosscompiling with OSX as the target (not the host)?
Are there technical limitations that prevent it?
Or just legal implications?

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: Cross compiling from Windows/Linux to OSX
« Reply #1 on: December 15, 2014, 12:21:49 am »
Oops. I misread your post and thought about cross compiling on Mac OS X. The problem ist to get binutils (in particular assembler and linker) for OS X.
« Last Edit: December 15, 2014, 12:23:59 am by kamischi »
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

Daniello

  • Jr. Member
  • **
  • Posts: 64
Re: Cross compiling from Windows/Linux to OSX
« Reply #2 on: December 15, 2014, 01:08:39 am »
I searched a bit more and found this:
http://wiki.lazarus.freepascal.org/Cross_compiling_OSX_on_Linux

It seems to be possible to compile the bin utils for Linux (and possibly Windows, but probably more difficult).