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 3d93011 commit 9aeedbfCopy full SHA for 9aeedbf
ext/sqlite3/extconf.rb
@@ -97,6 +97,10 @@ def configure_packaged_libraries
97
98
ldflags.each { |ldflag| append_ldflags(ldflag) }
99
100
+ unless windows? || have_func("dlopen")
101
+ append_ldflags("-ldl")
102
+ end
103
+
104
append_cppflags("-DUSING_PACKAGED_LIBRARIES")
105
append_cppflags("-DUSING_PRECOMPILED_LIBRARIES") if cross_build?
106
end
@@ -194,6 +198,10 @@ def darwin?
194
198
RbConfig::CONFIG["target_os"].include?("darwin")
195
199
196
200
201
+ def windows?
202
+ RbConfig::CONFIG["target_os"].match?(/mingw|mswin/)
203
204
197
205
def print_help
206
print(<<~TEXT)
207
USAGE: ruby #{$PROGRAM_NAME} [options]
0 commit comments