xref: /freebsd/sys/contrib/libsodium/dist-build/msys2-win64.sh (revision 517e52b6c21ccff22c46df0dcd15c19baee3d86c)
1#! /bin/sh
2
3export CFLAGS="-Ofast -fomit-frame-pointer -m64 -mtune=westmere"
4export PREFIX="$(pwd)/libsodium-win64"
5
6if (x86_64-w64-mingw32-gcc --version > /dev/null 2>&1) then
7  echo MinGW found
8else
9  echo Please install mingw-w64-x86_64-gcc >&2
10  exit
11fi
12
13./configure --prefix="$PREFIX" --exec-prefix="$PREFIX" \
14            --host=x86_64-w64-mingw32 && \
15make clean && \
16make && \
17make check && \
18make install
19