diff options
Diffstat (limited to 'make.bash.patch')
-rw-r--r-- | make.bash.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/make.bash.patch b/make.bash.patch new file mode 100644 index 000000000000..c60099207f01 --- /dev/null +++ b/make.bash.patch @@ -0,0 +1,46 @@ +diff --git a/ConsoleClient/make.bash b/ConsoleClient/make.bash +index 5bcc9fd7..2ab3d7f9 100755 +--- a/ConsoleClient/make.bash ++++ b/ConsoleClient/make.bash +@@ -87,25 +87,6 @@ build_for_windows () { + build_for_linux () { + prepare_build linux + +- echo "...Building linux-i686" +- # TODO: is "CFLAGS=-m32" required? +- CFLAGS=-m32 GOOS=linux GOARCH=386 go build -v -x -ldflags "$LDFLAGS" -tags "${BUILD_TAGS}" -o bin/linux/${EXE_BASENAME}-i686 +- RETVAL=$? +- if [ $RETVAL != 0 ]; then +- echo ".....gox failed, exiting" +- exit $RETVAL +- fi +- unset RETVAL +- +- echo "....UPX packaging output" +- goupx --best bin/linux/${EXE_BASENAME}-i686 +- RETVAL=$? +- if [ $RETVAL != 0 ]; then +- echo ".....goupx failed, exiting" +- exit $RETVAL +- fi +- unset RETVAL +- + echo "...Building linux-x86_64" + GOOS=linux GOARCH=amd64 go build -v -x -ldflags "$LDFLAGS" -tags "${BUILD_TAGS}" -o bin/linux/${EXE_BASENAME}-x86_64 + RETVAL=$? +@@ -114,15 +95,6 @@ build_for_linux () { + exit $RETVAL + fi + unset RETVAL +- +- echo "....UPX packaging output" +- goupx --best bin/linux/${EXE_BASENAME}-x86_64 +- RETVAL=$? +- if [ $RETVAL != 0 ]; then +- echo ".....goupx failed, exiting" +- exit $RETVAL +- fi +- unset RETVAL + } + + build_for_osx () { |