Skip to content

Commit

Permalink
Fix with --with-mysql-dir (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtm authored and sodabrew committed Apr 7, 2018
1 parent ed9aa84 commit e30a3e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/mysql2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def add_ssl_defines(header)
abort "-----\nCannot find library dir(s) #{lib}\n-----" unless lib && lib.split(File::PATH_SEPARATOR).any? { |dir| File.directory?(dir) }
warn "-----\nUsing --with-mysql-dir=#{File.dirname inc}\n-----"
rpath_dir = lib
have_library('mysqlclient')
elsif (mc = (with_config('mysql-config') || Dir[GLOB].first))
# If the user has provided a --with-mysql-config argument, we must respect it or fail.
# If the user gave --with-mysql-config with no argument means we should try to find it.
Expand Down

0 comments on commit e30a3e0

Please sign in to comment.