blob: 3839ce019a9e485986ca96a82d670c92e066073a [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 \
jfarrell985a9102013-08-17 15:44:19 -040015 --without-go \
16 --without-d \
David Reiss37b3df22010-08-31 16:51:32 +000017 --build=i686-pc-linux-gnu \
Ben Craige9576752013-10-11 08:19:16 -050018 --host=i586-mingw32msvc
David Reiss37b3df22010-08-31 16:51:32 +000019
20make
21
22# Check two locations to be compatible with libtool 1.5.26 or 2.2.6b.
jfarrell985a9102013-08-17 15:44:19 -040023if test -f compiler/cpp/.libs/thrift.exe ; then
24 i586-mingw32msvc-strip compiler/cpp/.libs/thrift.exe -o ./thrift.exe
25else
26 i586-mingw32msvc-strip compiler/cpp/thrift.exe -o ./thrift.exe
David Reiss37b3df22010-08-31 16:51:32 +000027fi
jfarrell985a9102013-08-17 15:44:19 -040028echo "Finished compiling with resulting exe"
David Reiss37b3df22010-08-31 16:51:32 +000029ls -l ./thrift.exe