aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mysql-connector-odbc.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/mysql-connector-odbc.rb b/Library/Formula/mysql-connector-odbc.rb
index 6bbbe3a7c..efe2b02f8 100644
--- a/Library/Formula/mysql-connector-odbc.rb
+++ b/Library/Formula/mysql-connector-odbc.rb
@@ -24,8 +24,8 @@ end
class MysqlConnectorOdbc < Formula
homepage 'http://dev.mysql.com/doc/refman/5.1/en/connector-odbc.html'
- url 'http://mysql.mirror.iweb.ca/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.11-src.tar.gz'
- sha1 '46aeaf721eddedaed239c4a688faee1990dcec62'
+ url 'http://mysql.mirror.iweb.ca/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.12-src.tar.gz'
+ sha1 '6ee162de8a277cdb017c5c8eee6284601837e7da'
# Won't compile against mysql-connector-c, as the C connector exports an API version
# that causes issues with how "my_free" is declared
@@ -37,6 +37,7 @@ class MysqlConnectorOdbc < Formula
def install
args = ["-DCMAKE_INSTALL_PREFIX=#{prefix}"]
args << "-DCMAKE_OSX_ARCHITECTURES='i386;x86_64'" if build.universal?
+ args << "-DMYSQL_LIB:FILEPATH=#{HOMEBREW_PREFIX}/lib/libmysqlclient_r.a"
ENV['MYSQL_DIR'] = HOMEBREW_PREFIX
system 'cmake', ".", *args
fix_goofy_link_file_error