Re-order the directories mkmf searches for BDB so that a Homebrew install in /usr/local is detected
This commit is contained in:
parent
ecbb019174
commit
46dc02f06b
|
@ -1,7 +1,9 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
%w[/usr/local /usr / /usr/local/db* /usr/local/BerkeleyDB*].each do |pdir|
|
# This list is checked in reverse order, so this order allows mkmf on my Mac
|
||||||
|
# to find BDB installed via Homebrew (/usr/local) before system installs
|
||||||
|
%w[/usr / /usr/local /usr/local/db* /usr/local/BerkeleyDB*].each do |pdir|
|
||||||
Dir[pdir].each do |dir|
|
Dir[pdir].each do |dir|
|
||||||
dir_config('db', "#{dir}/include", "#{dir}/lib")
|
dir_config('db', "#{dir}/include", "#{dir}/lib")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue