aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-08 09:02:17 -0700
committerAdam Vandenberg2013-06-08 09:02:17 -0700
commit48f7e862f8ee3df46948e259fce6fcb6a5a2479a (patch)
tree6ee6f023e310776da810b7c1bcf98f5eade59a37 /Library/Formula
parent3a217e6febb8ebdbb9a6f0fdb9ba1860128c9373 (diff)
downloadhomebrew-48f7e862f8ee3df46948e259fce6fcb6a5a2479a.tar.bz2
MySQL: allow compilation with Xcode-only setups
Closes #20185.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mysql.rb6
1 files changed, 6 insertions, 0 deletions
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