blob: f0b03a360aa8a7ee51c84d89f150fab3e18ff301 [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 \
Roger Meierba47e8e2011-03-29 19:59:44 +000010 --without-haskell \
David Reiss37b3df22010-08-31 16:51:32 +000011 --without-perl \
12 --without-php \
13 --without-erlang \
14 --build=i686-pc-linux-gnu \
15 --host=i586-mingw32msvc \
16 CPPFLAGS='-DMINGW'
17
18make
19
20# Check two locations to be compatible with libtool 1.5.26 or 2.2.6b.
21if test -f compiler/cpp/.libs/thrift.exe
22 then cp compiler/cpp/.libs/thrift.exe ./thrift.exe
23 else cp compiler/cpp/thrift.exe ./thrift.exe
24fi
25i586-mingw32msvc-strip ./thrift.exe
26echo
27ls -l ./thrift.exe