Permalink
Browse files

mingw does not use lib prefix.

  • Loading branch information...
1 parent edf5f85 commit 70bae9b02728e67cc94c31f77ff24fbc0561568d @nobu committed Jun 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/mysql2/extconf.rb
View
@@ -25,9 +25,9 @@ def asplode lib
GLOB = "{#{dirs.join(',')}}/{mysql_config,mysql_config5}"
-if RUBY_PLATFORM =~ /mswin|mingw/
+if RUBY_PLATFORM =~ /(mswin)|mingw/
inc, lib = dir_config('mysql')
- exit 1 unless have_library("libmysql")
+ exit 1 unless have_library($1 ? "libmysql" : "mysql")
elsif mc = (with_config('mysql-config') || Dir[GLOB].first) then
mc = Dir[GLOB].first if mc == true
cflags = `#{mc} --cflags`.chomp

0 comments on commit 70bae9b

Please sign in to comment.