summaryrefslogtreecommitdiff
path: root/dist-build/msys2-win32.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dist-build/msys2-win32.sh')
-rwxr-xr-xdist-build/msys2-win32.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/dist-build/msys2-win32.sh b/dist-build/msys2-win32.sh
new file mode 100755
index 0000000..5809d45
--- /dev/null
+++ b/dist-build/msys2-win32.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+export CFLAGS="-O3 -fomit-frame-pointer -m32 -march=pentium2 -mtune=nocona"
+export PREFIX="$(pwd)/libsodium-win32"
+
+./configure --prefix="$PREFIX" --exec-prefix="$PREFIX" \
+ --host=i686-w64-mingw32 && \
+make && \
+make check && \
+make install