From 48f7e862f8ee3df46948e259fce6fcb6a5a2479a Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 8 Jun 2013 09:02:17 -0700 Subject: MySQL: allow compilation with Xcode-only setups Closes #20185. --- Library/Formula/mysql.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library') diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 7774c4632..a58bf96ad 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -42,6 +42,12 @@ class Mysql < Formula end def install + # Don't hard-code the libtool path. See: + # https://github.com/mxcl/homebrew/issues/20185 + inreplace "cmake/libutils.cmake", + "COMMAND /usr/bin/libtool -static -o ${TARGET_LOCATION}", + "COMMAND libtool -static -o ${TARGET_LOCATION}" + # Build without compiler or CPU specific optimization flags to facilitate # compilation of gems and other software that queries `mysql-config`. ENV.minimal_optimization -- cgit v1.2.3