mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
Update README.md
This commit is contained in:
parent
5dffd32ec0
commit
34a0ef5d80
11
README.md
11
README.md
@ -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`
|
||||||
|
Loading…
Reference in New Issue
Block a user