| 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 \ | 
| henrique | 245dbdf | 2014-06-04 18:14:39 +0200 | [diff] [blame] | 7 | --host=i586-mingw32msvc \ | 
|  | 8 | CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ | 
| David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 9 |  | 
|  | 10 | make | 
|  | 11 |  | 
|  | 12 | # 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] | 13 | if test -f compiler/cpp/.libs/thrift.exe ; then | 
|  | 14 | i586-mingw32msvc-strip compiler/cpp/.libs/thrift.exe -o ./thrift.exe | 
|  | 15 | else | 
|  | 16 | i586-mingw32msvc-strip compiler/cpp/thrift.exe -o ./thrift.exe | 
| David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 17 | fi | 
| jfarrell | 985a910 | 2013-08-17 15:44:19 -0400 | [diff] [blame] | 18 | echo "Finished compiling with resulting exe" | 
| David Reiss | 37b3df2 | 2010-08-31 16:51:32 +0000 | [diff] [blame] | 19 | ls -l ./thrift.exe |