Skip to content

Latest commit

 

History

History
137 lines (71 loc) · 2.29 KB

README.CYGWIN.md

File metadata and controls

137 lines (71 loc) · 2.29 KB

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

For LTO support you will also need:

libllvm-devel, libllvm, libedit and libffi

The Cygwin package of libLLVM lacks the LTO library, but you can create that dll by issuing the following command:

./tools/gen_cyglto_dll.sh

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: