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.
2 parents bcdcc86 + 5cb8f7d commit 561d85bCopy full SHA for 561d85b
ext/mysql2/extconf.rb
@@ -29,6 +29,14 @@ def asplode lib
29
30
if RUBY_PLATFORM =~ /mswin|mingw/
31
inc, lib = dir_config('mysql')
32
+
33
+ # Ruby versions not incorporating the mkmf fix at
34
+ # https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/39717
35
+ # do not properly search for lib directories, and must be corrected
36
+ unless lib[-3, 3] == 'lib'
37
+ @libdir_basename = 'lib'
38
+ inc, lib = dir_config('mysql')
39
+ end
40
exit 1 unless have_library("libmysql")
41
elsif mc = (with_config('mysql-config') || Dir[GLOB].first) then
42
mc = Dir[GLOB].first if mc == true
0 commit comments