31 lines
767 B
Diff
31 lines
767 B
Diff
|
From: Jakub Jirutka <jakub@jirutka.cz>
|
||
|
Date: Wed, 24 Aug 2022 21:20:22 +0200
|
||
|
Subject: [PATCH] Don't strip the built library
|
||
|
|
||
|
abuild does it.
|
||
|
|
||
|
--- a/src/ruby/ext/grpc/extconf.rb
|
||
|
+++ b/src/ruby/ext/grpc/extconf.rb
|
||
|
@@ -94,21 +94,3 @@
|
||
|
output = File.join('grpc', 'grpc_c')
|
||
|
puts 'Generating Makefile for ' + output
|
||
|
create_makefile(output)
|
||
|
-
|
||
|
-strip_tool = RbConfig::CONFIG['STRIP']
|
||
|
-strip_tool += ' -x' if darwin
|
||
|
-
|
||
|
-if grpc_config == 'opt'
|
||
|
- File.open('Makefile.new', 'w') do |o|
|
||
|
- o.puts 'hijack: all strip'
|
||
|
- o.puts
|
||
|
- File.foreach('Makefile') do |i|
|
||
|
- o.puts i
|
||
|
- end
|
||
|
- o.puts
|
||
|
- o.puts 'strip: $(DLLIB)'
|
||
|
- o.puts "\t$(ECHO) Stripping $(DLLIB)"
|
||
|
- o.puts "\t$(Q) #{strip_tool} $(DLLIB)"
|
||
|
- end
|
||
|
- File.rename('Makefile.new', 'Makefile')
|
||
|
-end
|