David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | ./configure \ |
| 5 | --without-cpp \ |
| 6 | --without-java \ |
| 7 | --without-csharp \ |
| 8 | --without-python \ |
| 9 | --without-ruby \ |
| 10 | --without-perl \ |
| 11 | --without-php \ |
| 12 | --without-erlang \ |
| 13 | --build=i686-pc-linux-gnu \ |
| 14 | --host=i586-mingw32msvc \ |
| 15 | CPPFLAGS='-DMINGW' |
| 16 | |
| 17 | make |
| 18 | |
| 19 | # Check two locations to be compatible with libtool 1.5.26 or 2.2.6b. |
| 20 | if test -f compiler/cpp/.libs/thrift.exe |
| 21 | then cp compiler/cpp/.libs/thrift.exe ./thrift.exe |
| 22 | else cp compiler/cpp/thrift.exe ./thrift.exe |
| 23 | fi |
| 24 | i586-mingw32msvc-strip ./thrift.exe |
| 25 | echo |
| 26 | ls -l ./thrift.exe |