#!/bin/bash cd ~ sudo rm -r -f temp mkdir temp cd temp wget http://wareck.free.fr/cross_compilation/uthash-2.3.0.tar.gz tar xvfz uthash-2.3.0.tar.gz cd uthash-2.3.0 sudo cp src/* /opt/mxe/usr/i686-w64-mingw32.static/include/ cd ~ git clone https://github.com/wareck/bfgminer.git cd bfgminer git submodule init git submodule update autoreconf -fi CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-scrypt make strip bfgminer.exe