Update README.md.

This commit is contained in:
Hartmut Goebel 2017-01-18 11:08:35 +01:00
parent f9ebecaa1d
commit 0c4f91001b

View File

@ -7,14 +7,26 @@ Linux, *BSD, and Cygwin.
### HOW DOES IT WORK? ### ### HOW DOES IT WORK? ###
[Clang/LLVM is a cross compiler by default](http://clang.llvm.org/docs/CrossCompilation.html) For cross-compiling for OS X you need
and is now available on nearly every Linux distribution, * the Clang/LLVM compiler
so we just need a proper * the the [cctools](http://www.opensource.apple.com/tarballs/cctools)
[port](https://github.com/tpoechtrager/cctools-port) (ld, lipo, …), and
of the [cctools](http://www.opensource.apple.com/tarballs/cctools) * the OSX SDK.
(ld, lipo, ...) and the OS X SDK.
[Clang/LLVM is a cross compiler by default](http://clang.llvm.org/docs/CrossCompilation.html)
and is now available on nearly every Linux distribution, so we just
need a proper [port](https://github.com/tpoechtrager/cctools-port) of
the cctools and the OS X SDK.
OSXCross includes a collection of scripts for preparing the SDK and
building the cctools.
It also includes scripts for optionally building
* Clang using gcc (for the case your distribution does not include it),
* an up-to-date vanilla GCC as a cross-compiler for target OS X,
* the "compiler-rt" runtime library, and
* the `llvm-dsymutil` tool required for debugging.
If you want, then you can build an up-to-date vanilla GCC as well.
### WHAT CAN I BUILD WITH IT? ### ### WHAT CAN I BUILD WITH IT? ###
@ -38,17 +50,18 @@ Then ensure you have the following installed on your system:
`Clang 3.2+`, `patch`, `libxml2-devel` (<=10.6 only) and the `bash shell`. `Clang 3.2+`, `patch`, `libxml2-devel` (<=10.6 only) and the `bash shell`.
You can run 'sudo tools/get\_dependencies.sh' to get these (and the
optional packages) automatically.
*Optional:* *Optional:*
`llvm-devel`: For Link Time Optimization support - `llvm-devel`: For Link Time Optimization support
`uuid-devel`: For ld64 `-random_uuid` support - `uuid-devel`: For ld64 `-random_uuid` support
`llvm-devel` + `xar-devel`: For ld64 `-bitcode_bundle` support - `llvm-devel` + `xar-devel`: For ld64 `-bitcode_bundle` support
You can find xar [here](https://github.com/mackyle/xar). You can find xar [here](https://github.com/mackyle/xar).
Do not install libxar-dev on Ubuntu, it's a different package. Do not install libxar-dev on Ubuntu, it's a different package.
\--
You can run 'sudo tools/get\_dependencies.sh' to get these automatically.
##### Building Clang ##### ##### Building Clang #####