1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/sh
# From http://wagner.pp.ru/~vitus/articles/openssl-mingw.html
# With modifications
# Download openssl and unpack.
# Open Configure script with a text editor, find this line:
# $IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin" && !is_msys());
# and comment it out.
#
# $ perl Configure mingw
# $ make CC=i386-mingw32-gcc RANLIB=i386-mingw32-ranlib
export CC=/opt/local/bin/i386-mingw32-gcc
export CXX=/opt/local/bin/i386-mingw32-g++
export RANLIB=/opt/local/bin/i386-mingw32-ranlib
export MINGWFLAGS="-mwin32 -mconsole -march=pentium4 "
export CFLAGS="$MINGWFLAGS"
export CXXFLAGS="$MINGWFLAGS"
autoreconf -f
./configure CC=$CC CXX=$CXX RANLIB=$RANLIB --target=i586-mingw32msvc --host=i586
make CC=$CC CXX=$CXX RANLIB=$RANLIB CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS"
zip afflib_windows.zip tools/*.exe
|