Explorar el Código

Merge pull request #20496 from veblush/fix-ruby-build

Use -static-libstdc++ for ruby.linux
Esun Kim hace 6 años
padre
commit
8b5b1755ec
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/ruby/ext/grpc/extconf.rb

+ 1 - 0
src/ruby/ext/grpc/extconf.rb

@@ -76,6 +76,7 @@ if grpc_config == 'dbg'
 end
 
 $LDFLAGS << ' -Wl,-wrap,memcpy' if RUBY_PLATFORM =~ /linux/
+$LDFLAGS << ' -static-libgcc -static-libstdc++' if RUBY_PLATFORM =~ /linux/
 $LDFLAGS << ' -static' if windows
 
 $CFLAGS << ' -std=c99 '