aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ruby/ext/grpc/extconf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ruby/ext/grpc/extconf.rb b/src/ruby/ext/grpc/extconf.rb
index 9fad5b9904..b7a6d71d25 100644
--- a/src/ruby/ext/grpc/extconf.rb
+++ b/src/ruby/ext/grpc/extconf.rb
@@ -109,6 +109,11 @@ $CFLAGS << ' -pedantic '
$CFLAGS << ' -Werror '
$CFLAGS << ' -Wno-format '
+case RUBY_PLATFORM
+when /mingw|mswin/
+ $LDFLAGS << ' -static '
+end
+
subdir = RUBY_VERSION.sub(/\.\d$/,'')
output = File.join('grpc', 'grpc')
puts 'Generating Makefile for ' + output