Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-09

Darwin/i386 target

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Adam Naumowicz

Hi,

Is there a way to compile for the Darwin/i386 target using a native Linux/i386 compiler and cross binutils rather than building a crosscompiler? This target seems to be missing in the -T option, so I guess it's not supported this way, is it?

Best,

Adam

Reply by email

Jonas Maebe
to Adam Naumowicz
Adam Naumowicz wrote
Is there a way to compile for the Darwin/i386 target using a native Linux/i386 compiler and cross binutils rather than building a crosscompiler?

FPC always supports all OSes for a particular target cpu. So a Linux/ i386 compiler supports generating code for Darwin/i386 just as well as for netwlibc/i386.

But targeting Darwin/i386 is not easy since the GNU binutils don't support it, so you have to use Apple's cctools/ld64 projects and they don't trivially build on non-Mac OS X hosts. You also need a valid Mac OS X license as you need the Mac OS X libraries on your Linux system to be able to link.

This target seems to be missing in the -T option, so I guess it's not supported this way, is it?

The -T options are just listed in a text file, which happens to be not kept very much up-to-date at all times.

Jonas

Reply by email