blob: 9e8e054f904017edb6f81b83680623ad111d8b38 [file] [log] [blame]
David Reiss37b3df22010-08-31 16:51:32 +00001#!/bin/sh
2set -e
3
4./configure \
5 --without-cpp \
6 --without-java \
7 --without-csharp \
8 --without-python \
9 --without-ruby \
10 --without-perl \
11 --without-php \
12 --without-erlang \
13 --build=i686-pc-linux-gnu \
14 --host=i586-mingw32msvc \
15 CPPFLAGS='-DMINGW'
16
17make
18
19# Check two locations to be compatible with libtool 1.5.26 or 2.2.6b.
20if test -f compiler/cpp/.libs/thrift.exe
21 then cp compiler/cpp/.libs/thrift.exe ./thrift.exe
22 else cp compiler/cpp/thrift.exe ./thrift.exe
23fi
24i586-mingw32msvc-strip ./thrift.exe
25echo
26ls -l ./thrift.exe