Skip to content

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

Notifications You must be signed in to change notification settings

BobbyBabes/cctools-port

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Current Version: 895 + ld64-274.2.
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, arm

Untested, but compiles:

aarch64, ppc, ppc64

SUPPORTED TARGET ARCHITECTURES

armv6, armv7, armv7s, arm64, i386, x86_64,
x86_64h, armv6m, armv7k, armv7m and armv7em

SUPPORTED TARGET OPERATING SYSTEMS

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

DEPENDENCIES

Clang 3.2+ or gcc/g++/gcc-objc 4.8+

SDKs with .tdb stubs (>= Xcode 7) require the TAPI library to be installed.
=> https://github.com/tpoechtrager/apple-libtapi

musl-libc based systems require the musl-fts library to be installed. => https://github.com/pullmoll/musl-fts

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

Install Apple's TAPI library:

This step is only required if you intend to use SDKs with .tdb stubs.

git clone https://github.com/tpoechtrager/apple-libtapi.git
cd apple-libtapi
[INSTALLPREFIX=/home/user/cctools] ./build.sh
./install.sh

Install cctools and ld64:

git clone https://github.com/tpoechtrager/cctools-port.git
cd cctools-port/cctools
./configure \
    [--prefix=/home/user/cctools] \
    [--with-libtapi=/home/user/cctools] \
    [--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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 63.7%
  • C++ 22.3%
  • Makefile 4.7%
  • Objective-C 3.4%
  • Shell 3.0%
  • Roff 2.4%
  • Other 0.5%