blob: 54cd85202bab64825094d0ec612abf35e8af2bbe [file] [log] [blame]
David Reiss37b3df22010-08-31 16:51:32 +00001#!/bin/sh
2set -e
3
4./configure \
Roger Meier3bf62d12014-02-09 22:43:40 +01005 --disable-libs \
David Reiss37b3df22010-08-31 16:51:32 +00006 --build=i686-pc-linux-gnu \
Ben Craige9576752013-10-11 08:19:16 -05007 --host=i586-mingw32msvc
David Reiss37b3df22010-08-31 16:51:32 +00008
9make
10
11# Check two locations to be compatible with libtool 1.5.26 or 2.2.6b.
jfarrell985a9102013-08-17 15:44:19 -040012if test -f compiler/cpp/.libs/thrift.exe ; then
13 i586-mingw32msvc-strip compiler/cpp/.libs/thrift.exe -o ./thrift.exe
14else
15 i586-mingw32msvc-strip compiler/cpp/thrift.exe -o ./thrift.exe
David Reiss37b3df22010-08-31 16:51:32 +000016fi
jfarrell985a9102013-08-17 15:44:19 -040017echo "Finished compiling with resulting exe"
David Reiss37b3df22010-08-31 16:51:32 +000018ls -l ./thrift.exe