From 0215d9025148af25b898d38aaf989d2a84730cf7 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 31 Jan 2016 09:57:07 +0100 Subject: Last few improvements. --- Rakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index cd4f31731c..543d79061d 100755 --- a/Rakefile +++ b/Rakefile @@ -66,6 +66,7 @@ task 'gem:windows' do V = ENV['V'] || '0' env = 'CPPFLAGS="-D_WIN32_WINNT=0x600 -DUNICODE -D_UNICODE" ' + env += 'LDFLAGS=-static ' env += 'SYSTEM=MINGW32 ' env += 'EMBED_ZLIB=true ' env += 'BUILDDIR=/tmp ' @@ -73,11 +74,11 @@ task 'gem:windows' do env_comp = 'CC=x86_64-w64-mingw32-gcc ' env_comp += 'LD=x86_64-w64-mingw32-gcc ' - docker_for_windows "#{env} #{env_comp} make #{out} && cp #{out} grpc_c.64.ruby" + docker_for_windows "#{env} #{env_comp} make -j #{out} && x86_64-w64-mingw32-strip -x -S #{out} && cp #{out} grpc_c.64.ruby" env_comp = 'CC=i686-w64-mingw32-gcc ' env_comp += 'LD=i686-w64-mingw32-gcc ' - docker_for_windows "#{env} #{env_comp} make #{out} && cp #{out} grpc_c.32.ruby" + docker_for_windows "#{env} #{env_comp} make -j #{out} && i686-w64-mingw32-strip -x -S #{out} && cp #{out} grpc_c.32.ruby" docker_for_windows "bundle && rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.6:2.0.0 GRPC_CONFIG=#{grpc_config} V=#{V}" end -- cgit v1.2.3