From 60229d939672f554621fdf97ab2ed534fa9f7de7 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 5 Jan 2012 21:39:07 +0000 Subject: added helper scripts for mingw environment --- contrib/build-openssl-mingw-cross.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 contrib/build-openssl-mingw-cross.sh (limited to 'contrib/build-openssl-mingw-cross.sh') diff --git a/contrib/build-openssl-mingw-cross.sh b/contrib/build-openssl-mingw-cross.sh new file mode 100755 index 0000000..39f73eb --- /dev/null +++ b/contrib/build-openssl-mingw-cross.sh @@ -0,0 +1,19 @@ +#!/bin/sh +set -e +OPENSSL=openssl-1.0.0f +BASE=`pwd` + +wget http://openssl.org/source/$OPENSSL.tar.gz -O - | tar xz + +cd $OPENSSL +patch -p1 < ../openssl-1.0.0f-configure.patch +./config --cross-compile-prefix=x86_64-w64-mingw32- shared mingw64 --prefix=$BASE/openssl-w64/ +make +make install +make clean +./config --cross-compile-prefix=i686-w64-mingw32- shared mingw --prefix=$BASE/openssl-w32/ +make +make install +make clean +cd .. +rm -rf $OPENSSL -- cgit v1.2.3