File: bootstrap_mingw.sh

package info (click to toggle)
afflib 3.5.12-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,168 kB
  • ctags: 4,723
  • sloc: cpp: 21,800; ansic: 14,696; sh: 9,697; makefile: 531; python: 95
file content (22 lines) | stat: -rw-r--r-- 818 bytes parent folder | download
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