diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-29 06:49:46 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-29 06:49:46 +0100 |
commit | 2283ff6638739da590332bd987380205996a0e27 (patch) | |
tree | 06b4cc8bc94e3dca928889ae44bb70f1926a4a60 /src | |
parent | 1723044a12550341413c87480f839792d9b3fde0 (diff) |
Fixing dll hell.
Diffstat (limited to 'src')
-rw-r--r-- | src/ruby/ext/grpc/extconf.rb | 5 |
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 |