2010-08-31 16:51:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
./configure \
|
2014-02-09 21:43:40 +00:00
|
|
|
--disable-libs \
|
2010-08-31 16:51:32 +00:00
|
|
|
--build=i686-pc-linux-gnu \
|
2014-06-04 16:14:39 +00:00
|
|
|
--host=i586-mingw32msvc \
|
|
|
|
CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++
|
2010-08-31 16:51:32 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
# Check two locations to be compatible with libtool 1.5.26 or 2.2.6b.
|
2013-08-17 19:44:19 +00:00
|
|
|
if test -f compiler/cpp/.libs/thrift.exe ; then
|
|
|
|
i586-mingw32msvc-strip compiler/cpp/.libs/thrift.exe -o ./thrift.exe
|
|
|
|
else
|
|
|
|
i586-mingw32msvc-strip compiler/cpp/thrift.exe -o ./thrift.exe
|
2010-08-31 16:51:32 +00:00
|
|
|
fi
|
2013-08-17 19:44:19 +00:00
|
|
|
echo "Finished compiling with resulting exe"
|
2010-08-31 16:51:32 +00:00
|
|
|
ls -l ./thrift.exe
|