David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | ./configure \ |
Roger Meier | 3bf62d1 | 2014-02-09 22:43:40 +0100 | [diff] [blame] | 5 | --disable-libs \ |
David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 6 | --build=i686-pc-linux-gnu \ |
Ben Craig | e957675 | 2013-10-11 08:19:16 -0500 | [diff] [blame] | 7 | --host=i586-mingw32msvc |
David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 8 | |
| 9 | make |
| 10 | |
| 11 | # Check two locations to be compatible with libtool 1.5.26 or 2.2.6b. |
jfarrell | 985a910 | 2013-08-17 15:44:19 -0400 | [diff] [blame] | 12 | if test -f compiler/cpp/.libs/thrift.exe ; then |
| 13 | i586-mingw32msvc-strip compiler/cpp/.libs/thrift.exe -o ./thrift.exe |
| 14 | else |
| 15 | i586-mingw32msvc-strip compiler/cpp/thrift.exe -o ./thrift.exe |
David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 16 | fi |
jfarrell | 985a910 | 2013-08-17 15:44:19 -0400 | [diff] [blame] | 17 | echo "Finished compiling with resulting exe" |
David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 18 | ls -l ./thrift.exe |