ld64 build for Linux - EXPERIMENT for using Mach-Os for Darling's libs
Go to file
Thomas Pöchtrager 400835f16c merge ld64-241.9
2014-11-21 22:10:00 +01:00
cctools merge ld64-241.9 2014-11-21 22:10:00 +01:00
tools misc fixes 2014-11-21 22:09:45 +01:00
.gitignore cctools: make is_llvm_bitcode() more portable (fixes -flto with multiple -arch flags) 2014-02-15 14:54:10 +01:00
package.sh add support for OS X and iOS as host system 2014-10-14 23:07:31 +02:00
README.md add support for OS X and iOS as host system 2014-10-14 23:07:31 +02:00

Apple cctools port for Linux, FreeBSD and NetBSD

Current Version: 855 + ld64-236.3.
Originally ported by cjacker.

SUPPORTED HOSTS

Linux
FreeBSD
NetBSD
Mac OS X
iOS (partially)

SUPPORTED TARGETS

armv4t, armv5, armv6, armv7, armv7f, armv7k, armv7s, armv6m
armv7m, armv7em, armv8, arm64, arm64v8, i386, x86_64 and x86_64h.

DEPENDENCIES

Clang 3.2+, automake, autogen and libtool.

On Linux / FreeBSD / NetBSD you also need to install:

uuid-devel and openssl-devel.

Optional, but recommended deps:

llvm-devel (Enables Link Time Optimization)

INSTALLATION

  • cd cctools
  • ./autogen.sh
  • ./configure --prefix=<installdir> --target=<target>
  • make
  • make install

target = i386-apple-darwin11, x86_64-apple-darwin11, arm-apple-darwin11, ...

If you get compile errors because of unistd.h, then please run
../tools/fix_unistd_issue.sh and restart compiling.