2015-03-08 16:47:09 +00:00
|
|
|
# Apple cctools port for Linux, *BSD and Windows (Cygwin) #
|
2013-11-14 19:54:29 +00:00
|
|
|
|
2014-11-21 21:10:18 +00:00
|
|
|
Current Version: 862 + ld64-241.9.
|
2014-10-14 21:07:31 +00:00
|
|
|
Originally ported by [cjacker](http://ios-toolchain-based-on-clang-for-linux.googlecode.com).
|
2013-11-14 19:54:29 +00:00
|
|
|
|
2014-10-14 21:07:31 +00:00
|
|
|
## SUPPORTED HOSTS ##
|
|
|
|
|
|
|
|
Linux
|
|
|
|
FreeBSD
|
|
|
|
NetBSD
|
2015-03-08 16:47:09 +00:00
|
|
|
OpenBSD
|
2015-03-08 19:09:11 +00:00
|
|
|
DragonFlyBSD
|
2015-03-08 16:47:09 +00:00
|
|
|
Windows (Cygwin)
|
2014-10-14 21:07:31 +00:00
|
|
|
Mac OS X
|
2015-03-08 16:47:09 +00:00
|
|
|
iOS
|
2014-10-14 21:07:31 +00:00
|
|
|
|
|
|
|
## SUPPORTED TARGETS ##
|
|
|
|
|
|
|
|
armv4t, armv5, armv6, armv7, armv7f, armv7k, armv7s, armv6m
|
|
|
|
armv7m, armv7em, armv8, arm64, arm64v8, i386, x86_64 and x86_64h.
|
|
|
|
|
|
|
|
## DEPENDENCIES ##
|
2013-11-14 19:54:29 +00:00
|
|
|
|
2015-03-08 19:49:50 +00:00
|
|
|
`Clang 3.2+ or gcc/g++/gcc-objc 4.5+`, `automake`, `autogen` and `libtool`.
|
2013-11-14 19:59:27 +00:00
|
|
|
|
2015-03-08 16:47:09 +00:00
|
|
|
On non-Mac OS X systems you also need to install:
|
2013-11-14 19:59:27 +00:00
|
|
|
|
2014-10-14 21:07:31 +00:00
|
|
|
`uuid-devel` and `openssl-devel`.
|
|
|
|
|
|
|
|
Optional, but recommended deps:
|
|
|
|
|
|
|
|
`llvm-devel` (Enables Link Time Optimization)
|
|
|
|
|
|
|
|
## INSTALLATION ##
|
2013-11-14 19:54:29 +00:00
|
|
|
|
|
|
|
* `cd cctools`
|
2013-11-14 19:59:27 +00:00
|
|
|
* `./autogen.sh`
|
2015-03-08 16:47:09 +00:00
|
|
|
* `./configure --prefix=<installdir> --target=<target> [--with-llvm-config=...]`
|
2013-11-14 19:54:29 +00:00
|
|
|
* `make`
|
|
|
|
* `make install`
|
|
|
|
|
|
|
|
target = `i386-apple-darwin11`, `x86_64-apple-darwin11`, `arm-apple-darwin11`, ...
|
2013-11-15 17:37:45 +00:00
|
|
|
|
|
|
|
If you get compile errors because of `unistd.h`, then please run
|
2014-10-14 21:07:31 +00:00
|
|
|
`../tools/fix_unistd_issue.sh` and restart compiling.
|