ld64 build for Linux - EXPERIMENT for using Mach-Os for Darling's libs
Go to file
Thomas Pöchtrager bf9ac6a2c5 update README
2015-03-15 22:43:36 +01:00
cctools typo 2015-03-15 22:26:45 +01:00
tools map -> version-script 2015-02-24 21:58:10 +01:00
usage_examples/ios_toolchain * linux ppc/ppc64 & arm/arm64/aarch64 port 2015-03-15 22:21:16 +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 * linux ppc/ppc64 & arm/arm64/aarch64 port 2015-03-15 22:21:16 +01:00
README.md update README 2015-03-15 22:43:36 +01:00

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

Current Version: 862 + ld64-241.9.
Originally ported by cjacker.

SUPPORTED HOSTS

SUPPORTED OPERATING SYSTEMS:

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

SUPPORTED HOST ARCHITECTURES:

x86, x86_64

Untested, but compiles:

arm, aarch64, ppc, ppc64

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+ or gcc/g++/gcc-objc 4.5+, automake, autogen and libtool.

On non-Mac OS X systems 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> [--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.