* Support for generating fat object files with gcc and '-foc-use-gcc-libstdc++' has been removed. This feature was not 100% correctly implemented; using multiple source files did not work, i.e.: 'o32-g++ -m32 -m64 a.cpp b.cpp' would have failed; And I refuse to implement that, instead I am removing all source file handling from the wrapper with this commit for simplicity. This feature should be implemented in the gcc driver instead. This does NOT affect clang's fat object file support, which is implemented in clang's darwin driver. * '-oc-use-gcc-lib' has been renamed to '-foc-use-gcc-libstdc++'. * Added support for '-stdc++' and '-gstdc++' compiler "shortcuts" o32-clang++ --> uses libstdc++ for <= 10.8 and libc++ for >= 10.9 o32-clang++-libc++ --> uses the SDK's libc++ o32-clang++-stdc++ --> uses the SDK's libstdc++ o32-clang++-gstdc++ --> uses gcc's (build_gcc.sh) libstdc++ * Entirely rewrote the command line parser; the previous one wasn't very readable. * Minor Readme Updates * Added unit tests * Removed OSXCROSS_C_STANDARD / OSXCROSS_CXX_STANDARD support I am no longer parsing -std=, so this feature has to be dropped. Setting the language standard via an env variable isn't a good idea anyway. * Removed unneeded stuff Other Changes: * Version bump to 0.11
2.1 KiB
STEP BY STEP INSTALLATION GUIDE:
Step 1:
Get Cygwin:
32-Bit: https://cygwin.com/setup-x86.exe
64-Bit: https://cygwin.com/setup-x86_64.exe
Note: You can compile for 64-bit in a 32-bit environment.
Click on setup-*.exe and install the following packages:
git
, make
, clang
, gcc-core
, gcc-objc
, gcc-g++
,
patch
, wget
, libuuid-devel
, openssl
and pkg-config
Step 2:
Open the Cygwin shell:
Step 3:
Clone the OSXCross repository:
Step 4:
Get the Mac OS X SDK and move it into
C:\Cygwin*\home\<User>\osxcross\tarballs
.
Please see README for more.
Step 5:
Build OSXCross:
Step 6:
Add the printed target/bin path to your ~/.bashrc
:
Step 7:
Restart the Cygwin shell:
Step 8:
Verify target/bin is in PATH:
All done!
OPTIONAL:
Compiler-RT
Please see README.COMPILER-RT for more.
Step 1:
Build Compiler-RT:
Step 2:
Execute the printed commands:
Step 3:
Verify Compiler-RT works:
EXAMPLE USAGE:
osxcross-macports
Please see README.MACPORTS for more.
Step 1:
Change the deployment target to >= 10.7:
Step 2:
Restart the Cygwin shell:
Step 3:
Let's install libgeoip:
Step 4:
Write a simple test program:
Step 5:
Compile the test program:
... or the xcrun way: