mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 10:25:18 +00:00
985a910b1b
Client: build Patch: jfarrell Updates the mingw build script to use the -o option when striping.
31 lines
677 B
Bash
Executable File
31 lines
677 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
./configure \
|
|
--without-cpp \
|
|
--without-c_glib \
|
|
--without-java \
|
|
--without-csharp \
|
|
--without-python \
|
|
--without-ruby \
|
|
--without-haskell \
|
|
--without-perl \
|
|
--without-php \
|
|
--without-erlang \
|
|
--without-go \
|
|
--without-d \
|
|
--build=i686-pc-linux-gnu \
|
|
--host=i586-mingw32msvc \
|
|
CPPFLAGS='-DMINGW'
|
|
|
|
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
|