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