Cross-compiler build toolchains for XLTools.
The current host OS for the cross-compiler is Ubuntu, 16.04, using MXE and OSXCross.
To install the 32- and 64-bit toolkits, run:
sudo apt install mxe-i686-w64-mingw32.static-gcc \
mxe-x86-64-w64-mingw32.static-gcc \
mxe-i686-w64-mingw32.static-pthreads \
mxe-x86-64-w64-mingw32.static-pthreads
The compilers will be installed under /usr/lib/mxe/usr/bin/
.
The toolkits can be invoked using:
cmake $args -DCMAKE_TOOLCHAIN_FILE=$toolchain