aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-01-29 06:49:46 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-01-29 06:49:46 +0100
commit2283ff6638739da590332bd987380205996a0e27 (patch)
tree06b4cc8bc94e3dca928889ae44bb70f1926a4a60 /src
parent1723044a12550341413c87480f839792d9b3fde0 (diff)
Fixing dll hell.
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