blob: 7ed5d47738c7ce78cad45ce9f9885c4b56b9a4b7 [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 \
henrique245dbdf2014-06-04 18:14:39 +02007 --host=i586-mingw32msvc \
8 CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++
David Reiss37b3df22010-08-31 16:51:32 +00009
10make
11
12# Check two locations to be compatible with libtool 1.5.26 or 2.2.6b.
jfarrell985a9102013-08-17 15:44:19 -040013if test -f compiler/cpp/.libs/thrift.exe ; then
14 i586-mingw32msvc-strip compiler/cpp/.libs/thrift.exe -o ./thrift.exe
15else
16 i586-mingw32msvc-strip compiler/cpp/thrift.exe -o ./thrift.exe
David Reiss37b3df22010-08-31 16:51:32 +000017fi
jfarrell985a9102013-08-17 15:44:19 -040018echo "Finished compiling with resulting exe"
David Reiss37b3df22010-08-31 16:51:32 +000019ls -l ./thrift.exe