We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec38f3b commit a5b92b8Copy full SHA for a5b92b8
test/rcd_test/ext/mri/extconf.rb
@@ -92,4 +92,18 @@
92
end
93
94
create_makefile("rcd_test/rcd_test_ext")
95
+
96
+ # exercise the strip command - this approach borrowed from grpc
97
+ strip_tool = RbConfig::CONFIG['STRIP']
98
+ strip_tool += ' -x' if RUBY_PLATFORM =~ /darwin/
99
+ File.open('Makefile.new', 'w') do |o|
100
+ o.puts 'hijack: all strip'
101
+ o.puts
102
+ o.write(File.read('Makefile'))
103
104
+ o.puts 'strip: $(DLLIB)'
105
+ o.puts "\t$(ECHO) Stripping $(DLLIB)"
106
+ o.puts "\t$(Q) #{strip_tool} $(DLLIB)"
107
+ end
108
+ File.rename('Makefile.new', 'Makefile')
109
0 commit comments