1 1.1 riastrad #! /bin/sh 2 1.1 riastrad 3 1.1 riastrad export CFLAGS="-Ofast -fomit-frame-pointer -m64 -mtune=westmere" 4 1.1 riastrad export PREFIX="$(pwd)/libsodium-win64" 5 1.1 riastrad 6 1.1 riastrad if (x86_64-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-x86_64-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=x86_64-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