mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
small cleanup
This commit is contained in:
parent
5af3f4eb2d
commit
cbaa387542
@ -6,7 +6,7 @@ The goal of OSXCross is to deliver you a high quality cross toolchain targeting
|
|||||||
|
|
||||||
### HOW DOES IT WORK? ###
|
### HOW DOES IT WORK? ###
|
||||||
|
|
||||||
[Clang/LLVM is a cross compiler by default](http://clang.llvm.org/docs/CrossCompilation.html) and is now available on nearly every Linux distrubtion.
|
[Clang/LLVM is a cross compiler by default](http://clang.llvm.org/docs/CrossCompilation.html) and is now available on nearly every Linux distribution.
|
||||||
Therefore we "just" need a proper
|
Therefore we "just" need a proper
|
||||||
[port](https://code.google.com/p/ios-toolchain-based-on-clang-for-linux/source/browse/#svn%2Ftrunk%2Fcctools-porting%2Fpatches)
|
[port](https://code.google.com/p/ios-toolchain-based-on-clang-for-linux/source/browse/#svn%2Ftrunk%2Fcctools-porting%2Fpatches)
|
||||||
of the [cctools](http://www.opensource.apple.com/tarballs/cctools) (ld, lipo, ...) for Linux, and the OS X SDK.
|
of the [cctools](http://www.opensource.apple.com/tarballs/cctools) (ld, lipo, ...) for Linux, and the OS X SDK.
|
||||||
@ -71,7 +71,7 @@ on debian like systems you can run `apt-get build-dep gcc` to install them.
|
|||||||
|
|
||||||
XX= the target version, you can find it out by running `osxcross-conf` and then see `TARGET`.
|
XX= the target version, you can find it out by running `osxcross-conf` and then see `TARGET`.
|
||||||
|
|
||||||
You can use the shorting `o32-...` or `i386-apple-darwin...` what ever you like more.
|
You can use the shortcut `o32-...` or `i386-apple-darwin...` what ever you like more.
|
||||||
|
|
||||||
*I'll continue from now on with `o32-clang`, but remember you can simply replace it with `o32-gcc` or `i386-apple-darwin...`.*
|
*I'll continue from now on with `o32-clang`, but remember you can simply replace it with `o32-gcc` or `i386-apple-darwin...`.*
|
||||||
|
|
||||||
|
2
build.sh
2
build.sh
@ -108,11 +108,13 @@ patch -p0 < $PATCH_DIR/cctools-ld64-2.patch
|
|||||||
patch -p0 < $PATCH_DIR/cctools-ld64-3.patch
|
patch -p0 < $PATCH_DIR/cctools-ld64-3.patch
|
||||||
patch -p0 < $PATCH_DIR/cctools-llvm-3.4.patch
|
patch -p0 < $PATCH_DIR/cctools-llvm-3.4.patch
|
||||||
patch -p0 < $PATCH_DIR/cctools-conf-1.patch
|
patch -p0 < $PATCH_DIR/cctools-conf-1.patch
|
||||||
|
set +e
|
||||||
grep -n "__block," /usr/include/unistd.h &>/dev/null
|
grep -n "__block," /usr/include/unistd.h &>/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "applying workaround for buggy unistd.h"
|
echo "applying workaround for buggy unistd.h"
|
||||||
$PATCH_DIR/fix-unistd-issue.sh
|
$PATCH_DIR/fix-unistd-issue.sh
|
||||||
fi
|
fi
|
||||||
|
set -e
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --prefix=$TARGET_DIR --target=x86_64-apple-$TARGET
|
./configure --prefix=$TARGET_DIR --target=x86_64-apple-$TARGET
|
||||||
make -j$JOBS
|
make -j$JOBS
|
||||||
|
Loading…
Reference in New Issue
Block a user