Update README.md

This commit is contained in:
Thomas Pöchtrager 2013-11-13 20:52:07 +01:00
parent 5dffd32ec0
commit 34a0ef5d80

View File

@ -2,7 +2,7 @@
### WHAT IS THE GOAL OF OSXCROSS? ### ### WHAT IS THE GOAL OF OSXCROSS? ###
The goal of OSXCross is to deliever you a high quality cross toolchain targeting OS X on Linux. The goal of OSXCross is to deliver you a high quality cross toolchain targeting OS X on Linux.
### HOW DOES IT WORK? ### ### HOW DOES IT WORK? ###
@ -91,12 +91,9 @@ You can use the shorting `o32-...` or `i386-apple-darwin...` what ever you like
##### Building a universal binary: ##### ##### Building a universal binary: #####
clang: * clang:
* `o64-clang++ test.cpp -O3 -arch i386 -arch x86_64 -o test`
`o64-clang++ test.cpp -O3 -arch i386 -arch x86_64 -o test` * GCC:
GCC:
* build the 32 bit binary: `o32-g++ test.cpp -O3 -o test.i386` * build the 32 bit binary: `o32-g++ test.cpp -O3 -o test.i386`
* build the 64 bit binary: `o64-g++ test.cpp -O3 -o test.x86_64` * build the 64 bit binary: `o64-g++ test.cpp -O3 -o test.x86_64`
* use lipo to generate the universal binary: `x86_64-apple darwinXX-lipo -create test.i386 test.x86_64 -output test` * use lipo to generate the universal binary: `x86_64-apple darwinXX-lipo -create test.i386 test.x86_64 -output test`