ld64 build for Linux - EXPERIMENT for using Mach-Os for Darling's libs
Go to file
Thomas Pöchtrager e7235980ce Update README
2016-05-09 21:32:37 +02:00
cctools Merge branch 'master' into 877.5-ld64-253.3-ppc 2016-04-16 20:17:27 +02:00
tools cctools 877.5 2015-10-23 19:07:14 +02:00
usage_examples/ios_toolchain Fix for #13 2015-12-01 20:27:43 +01:00
.gitignore cctools: make is_llvm_bitcode() more portable (fixes -flto with multiple -arch flags) 2014-02-15 14:54:10 +01:00
.merge.log cctools 877.5 2015-10-23 19:07:14 +02:00
.travis.yml Cleanup 2015-10-24 10:55:54 +02:00
package.sh Update package.sh 2015-10-17 10:13:48 +02:00
README.md Update README 2016-05-09 21:32:37 +02:00

Apple cctools port for Linux, *BSD and Windows (Cygwin)

Current Version: 877.5 + ld64-253.3.

CREDITS

Initial cctools/ld64 port: cjacker.
PPC forward port: Michael Weiser.

SUPPORTED HOSTS

SUPPORTED OPERATING SYSTEMS:

Linux, FreeBSD, NetBSD, OpenBSD, DragonFlyBSD,
Windows (Cygwin), Mac OS X and iOS

SUPPORTED HOST ARCHITECTURES:

x86, x86_64, arm

Untested, but compiles:

aarch64, ppc, ppc64

SUPPORTED TARGET ARCHITECTURES

armv4t, armv5, armv6, armv7, armv7f, armv7k, armv7s, armv6m,
armv7m, armv7em, armv8, arm64, arm64v8, i386, x86_64, x86_64h,
ppc, ppc750, ppc7400, ppc7450, ppc970 and ppc64

SUPPORTED TARGET OPERATING SYSTEMS

Mac OS X, iOS, watchOS (untested) and tvOS (untested)

DEPENDENCIES

Clang 3.2+ or gcc/g++/gcc-objc 4.7+, automake, autogen and libtool.

Optional, but recommended:

llvm-devel (For Link Time Optimization Support)
uuid-devel (For ld64 -random_uuid Support)
llvm-devel + xar-devel (For ld64 -bitcode_bundle Support)

You can find xar here.
Do not install libxar-dev on Ubuntu, it's a different package.

INSTALLATION

  • cd cctools
  • ./autogen.sh
  • ./configure --prefix=<installdir> --target=<target> [--with-llvm-config=...]
  • 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.

TRAVIS CI

Build Status