sqliteodbc: fix finding unixodbc.

When HOMEBREW_PREFIX is not /usr/local.

Closes Homebrew/homebrew#49877.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Peter Powell 2016-03-08 13:05:16 +00:00 committed by Xu Cheng
parent 8893cb36d2
commit 4fb08689c3

View file

@ -16,7 +16,7 @@ class Sqliteodbc < Formula
def install
lib.mkdir
system "./configure", "--prefix=#{prefix}"
system "./configure", "--prefix=#{prefix}", "--with-odbc=#{Formula["unixodbc"].opt_prefix}"
system "make"
system "make", "install"
lib.install_symlink "#{lib}/libsqlite3odbc.dylib" => "libsqlite3odbc.so"