We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06e47b4 commit dc8ccd8Copy full SHA for dc8ccd8
ext/sqlite3/extconf.rb
@@ -87,6 +87,13 @@ def configure_packaged_libraries
87
end
88
89
flags.each { |flag| append_ldflags(flag) }
90
+
91
+ # See https://github.com/rake-compiler/rake-compiler-dock/issues/87 for more info.
92
+ if cross_build? &&
93
+ darwin? &&
94
+ Gem::Requirement.new("~> 3.2").satisfied_by?(Gem::Version.new(RbConfig::CONFIG["ruby_version"]))
95
+ append_ldflags("-Wl,-flat_namespace")
96
+ end
97
98
99
@@ -172,6 +179,10 @@ def download
172
179
minimal_recipe.download
173
180
174
181
182
+ def darwin?
183
+ RbConfig::CONFIG["target_os"].include?("darwin")
184
185
175
186
def print_help
176
187
print(<<~TEXT)
177
188
USAGE: ruby #{$PROGRAM_NAME} [options]
0 commit comments