2010-08-31 16:51:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--without-cpp \
|
2012-05-01 12:12:17 +00:00
|
|
|
--without-c_glib \
|
2010-08-31 16:51:32 +00:00
|
|
|
--without-java \
|
|
|
|
--without-csharp \
|
|
|
|
--without-python \
|
|
|
|
--without-ruby \
|
2011-03-29 19:59:44 +00:00
|
|
|
--without-haskell \
|
2010-08-31 16:51:32 +00:00
|
|
|
--without-perl \
|
|
|
|
--without-php \
|
|
|
|
--without-erlang \
|
2013-08-17 19:44:19 +00:00
|
|
|
--without-go \
|
|
|
|
--without-d \
|
2010-08-31 16:51:32 +00:00
|
|
|
--build=i686-pc-linux-gnu \
|
2013-10-11 13:19:16 +00:00
|
|
|
--host=i586-mingw32msvc
|
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
|