gorealis/vendor/git.apache.org/thrift.git/contrib/mingw-cross-compile.sh
Renan DelValle 8d445c1c77
Moving from govendor to dep, updated dependencies (#48)
* Moving from govendor to dep.

* Making the pull request template more friendly.

* Fixing akward space in PR template.

* goimports run on whole project using ` goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./gen-go/*")`

source of command: https://gist.github.com/bgentry/fd1ffef7dbde01857f66
2018-01-07 13:13:47 -08:00

19 lines
494 B
Bash
Executable file

#!/bin/sh
set -e
./configure \
--disable-libs \
--build=i686-pc-linux-gnu \
--host=i586-mingw32msvc \
CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++
make
# Check two locations to be compatible with libtool 1.5.26 or 2.2.6b.
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
fi
echo "Finished compiling with resulting exe"
ls -l ./thrift.exe