aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/ext
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-02-03 02:11:43 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-02-03 02:11:43 +0100
commitd35549779282c903840e6dd9bc4e6ef3d06f877e (patch)
tree1dc9c8061ca4743a5a3095aaa7c4748aa338cf09 /src/ruby/ext
parent67c184824968ae29e84796d5b0e5cf3a8519f201 (diff)
Removing memcpy's wrapper for windows-ruby.
Diffstat (limited to 'src/ruby/ext')
-rw-r--r--src/ruby/ext/grpc/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ruby/ext/grpc/extconf.rb b/src/ruby/ext/grpc/extconf.rb
index ab27b0415d..f6f78f7810 100644
--- a/src/ruby/ext/grpc/extconf.rb
+++ b/src/ruby/ext/grpc/extconf.rb
@@ -92,7 +92,8 @@ if grpc_config == 'gcov'
$LDFLAGS << ' -fprofile-arcs -ftest-coverage -rdynamic'
end
-$LDFLAGS << ' -Wl,-wrap,memcpy'
+$LDFLAGS << ' -Wl,-wrap,memcpy' if RUBY_PLATFORM =~ /linux/
+$LDFLAGS << ' -static' if windows
$CFLAGS << ' -std=c99 '
$CFLAGS << ' -Wall '