1 1.1 riastrad #! /bin/sh 2 1.1 riastrad 3 1.1 riastrad export CFLAGS="-Ofast -fomit-frame-pointer -m32 -march=pentium3 -mtune=westmere" 4 1.1 riastrad export PREFIX="$(pwd)/libsodium-win32" 5 1.1 riastrad 6 1.1 riastrad if (i686-w64-mingw32-gcc --version > /dev/null 2>&1) then 7 1.1 riastrad echo MinGW found 8 1.1 riastrad else 9 1.1 riastrad echo Please install mingw-w64-i686-gcc >&2 10 1.1 riastrad exit 11 1.1 riastrad fi 12 1.1 riastrad 13 1.1 riastrad ./configure --prefix="$PREFIX" --exec-prefix="$PREFIX" \ 14 1.1 riastrad --host=i686-w64-mingw32 && \ 15 1.1 riastrad make clean && \ 16 1.1 riastrad make && \ 17 1.1 riastrad make check && \ 18 1.1 riastrad make install 19