summaryrefslogtreecommitdiff
path: root/www/rubygem-passenger/files/patch-src-ruby_native_extension-extconf.rb
blob: 69f62791f332fe99db2440869c4ffffa8a28d669 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/ruby_native_extension/extconf.rb.orig	2020-06-05 11:51:04.865937000 -0400
+++ src/ruby_native_extension/extconf.rb	2020-06-05 13:22:43.694831000 -0400
@@ -70,6 +70,12 @@
 		File.open("Makefile", "w") do |f|
 			f.write(makefile)
 		end
+	elsif RUBY_PLATFORM =~ /freebsd/
+		makefile = File.read("Makefile")
+		makefile.sub!(/-Wl,--compress-debug-sections=zlib/, "")
+		File.open("Makefile", "w") do |f|
+			f.write(makefile)
+		end
 	end
 end